answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT attendance FROM table_name_43 WHERE week = 7
CREATE TABLE table_name_43 (attendance VARCHAR, week VARCHAR)
What was the attendance at the week 7 game?
SELECT result FROM table_name_94 WHERE week > 3 AND opponent = "new york giants"
CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, opponent VARCHAR)
What was the result of the game after week 3 against the New York Giants?
SELECT opponent FROM table_name_52 WHERE week = 6
CREATE TABLE table_name_52 (opponent VARCHAR, week VARCHAR)
Who was the opponent at the week 6 game?
SELECT MIN(loss) FROM table_name_80 WHERE name = "jarius wright" AND gain > 1
CREATE TABLE table_name_80 (loss INTEGER, name VARCHAR, gain VARCHAR)
What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1.
SELECT 1 AS st_prize___$__ FROM table_name_80 WHERE location = "ohio" AND tournament = "american golf classic"
CREATE TABLE table_name_80 (location VARCHAR, tournament VARCHAR)
How much was the first place prize for the American golf classic located in Ohio?
SELECT date FROM table_name_58 WHERE location = "florida" AND tournament = "monsanto open"
CREATE TABLE table_name_58 (date VARCHAR, location VARCHAR, tournament VARCHAR)
What date was the Monsanto open located in Florida?
SELECT score FROM table_name_80 WHERE winner = "johnny miller (7)"
CREATE TABLE table_name_80 (score VARCHAR, winner VARCHAR)
What was the score of Johnny Miller (7)?
SELECT COUNT(year) FROM table_name_62 WHERE division > 4
CREATE TABLE table_name_62 (year VARCHAR, division INTEGER)
What is the total number of years that have divisions greater than 4?
SELECT MAX(division) FROM table_name_27 WHERE year < 2011
CREATE TABLE table_name_27 (division INTEGER, year INTEGER)
What is the highest division for years earlier than 2011?
SELECT COUNT(week) FROM table_name_64 WHERE date = "november 30, 1958" AND attendance > 33 OFFSET 240
CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR, attendance VARCHAR)
What is the Week number on November 30, 1958 with more than 33,240 in Attendance?
SELECT result FROM table_name_77 WHERE date = "november 9, 1958"
CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR)
What was the Result on November 9, 1958?
SELECT AVG(attendance) FROM table_name_70 WHERE week = 8
CREATE TABLE table_name_70 (attendance INTEGER, week VARCHAR)
What was the Attendance on Week 8?
SELECT season FROM table_name_70 WHERE against = "did not qualify for uefa competitions"
CREATE TABLE table_name_70 (season VARCHAR, against VARCHAR)
Which season did not qualify for UEFA competitions?
SELECT lost FROM table_name_15 WHERE goals_against = "5"
CREATE TABLE table_name_15 (lost VARCHAR, goals_against VARCHAR)
How many games were lost that had goals against of 5?
SELECT drew FROM table_name_56 WHERE goals_against = "did not qualify for uefa competitions"
CREATE TABLE table_name_56 (drew VARCHAR, goals_against VARCHAR)
How many draws were there with goals against that did not qualify for UEFA competitions?
SELECT competition FROM table_name_67 WHERE lost = "did not qualify for uefa competitions" AND season = "1970-71"
CREATE TABLE table_name_67 (competition VARCHAR, lost VARCHAR, season VARCHAR)
Which competition did not qualify for UEFA competitions in the 1970-71 season?
SELECT SUM(attendance) FROM table_name_86 WHERE venue = "texas stadium"
CREATE TABLE table_name_86 (attendance INTEGER, venue VARCHAR)
What is the attendance in texas stadium?
SELECT home_team AS score FROM table_name_98 WHERE ground = "telstra dome"
CREATE TABLE table_name_98 (home_team VARCHAR, ground VARCHAR)
What is the home team score for the team that has a home field of the Telstra Dome?
SELECT home_team FROM table_name_36 WHERE away_team = "brisbane lions"
CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
Which home team had an away team of the Brisbane Lions?
SELECT sensor FROM table_name_53 WHERE sensor_resolution = "355x288" AND camera = "naturalpoint trackir 3"
CREATE TABLE table_name_53 (sensor VARCHAR, sensor_resolution VARCHAR, camera VARCHAR)
What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3?
SELECT sensor_resolution FROM table_name_39 WHERE cpu_usage = "minimal" AND camera = "naturalpoint trackir 3 pro"
CREATE TABLE table_name_39 (sensor_resolution VARCHAR, cpu_usage VARCHAR, camera VARCHAR)
What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro?
SELECT output FROM table_name_90 WHERE ir_leds = "no"
CREATE TABLE table_name_90 (output VARCHAR, ir_leds VARCHAR)
What was the output with no IR LEDs?
SELECT sensor FROM table_name_21 WHERE sensor_resolution = "640x480" AND cpu_usage = "small" AND output = "jpeg compressed" AND camera = "sony playstation eyetoy"
CREATE TABLE table_name_21 (sensor VARCHAR, camera VARCHAR, output VARCHAR, sensor_resolution VARCHAR, cpu_usage VARCHAR)
What sensor has a resolution of 640x480 with small CPU usage, jpeg compressed output and a camera of sony playstation eyetoy?
SELECT SUM(max_speed__km_h_) FROM table_name_22 WHERE quantity_built = "8+4" AND year_built < 1971
CREATE TABLE table_name_22 (max_speed__km_h_ INTEGER, quantity_built VARCHAR, year_built VARCHAR)
What is the max speed of the unit with an 8+4 quantity built before 1971?
SELECT numbers FROM table_name_49 WHERE power__horsepower_ > 220 AND type = "thn"
CREATE TABLE table_name_49 (numbers VARCHAR, power__horsepower_ VARCHAR, type VARCHAR)
What is the numbers of the thn unit with a power greater than 220?
SELECT SUM(power__horsepower_) FROM table_name_71 WHERE year_built > 1995
CREATE TABLE table_name_71 (power__horsepower_ INTEGER, year_built INTEGER)
What is the power of the unit built after 1995?
SELECT result FROM table_name_5 WHERE week > 6 AND date = "november 22, 1959"
CREATE TABLE table_name_5 (result VARCHAR, week VARCHAR, date VARCHAR)
Week larger than 6, and a Date of november 22, 1959 had what result?
SELECT AVG(week) FROM table_name_96 WHERE result = "w 21–7"
CREATE TABLE table_name_96 (week INTEGER, result VARCHAR)
Result of w 21–7 had what average week?
SELECT MIN(attendance) FROM table_name_7 WHERE date = "november 29, 1959"
CREATE TABLE table_name_7 (attendance INTEGER, date VARCHAR)
Date of november 29, 1959 had what lowest attendance?
SELECT week FROM table_name_4 WHERE date = "december 5, 1959"
CREATE TABLE table_name_4 (week VARCHAR, date VARCHAR)
Week that has a Date of december 5, 1959 had what week?
SELECT SUM(game) FROM table_name_94 WHERE opponent = "@ carolina hurricanes"
CREATE TABLE table_name_94 (game INTEGER, opponent VARCHAR)
Which Game has an Opponent of @ carolina hurricanes?
SELECT COUNT(game) FROM table_name_10 WHERE november = 10
CREATE TABLE table_name_10 (game VARCHAR, november VARCHAR)
How many games have a November of 10?
SELECT SUM(game) FROM table_name_32 WHERE november = 22
CREATE TABLE table_name_32 (game INTEGER, november VARCHAR)
Which Game has a November of 22?
SELECT AVG(year_of_marriage) FROM table_name_6 WHERE her_age > 19 AND his_age = 30
CREATE TABLE table_name_6 (year_of_marriage INTEGER, her_age VARCHAR, his_age VARCHAR)
What is the mean year of marriage when her age was more than 19 and his age was 30?
SELECT MIN(her_age) FROM table_name_60 WHERE year_of_marriage < 1853 AND _number_of_children < 8 AND name = "eliza maria partridge"
CREATE TABLE table_name_60 (her_age INTEGER, name VARCHAR, year_of_marriage VARCHAR, _number_of_children VARCHAR)
What is the lowest figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge?
SELECT SUM(her_age) FROM table_name_84 WHERE his_age < 33 AND name = "diontha walker" AND _number_of_children < 0
CREATE TABLE table_name_84 (her_age INTEGER, _number_of_children VARCHAR, his_age VARCHAR, name VARCHAR)
What is the total number of her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0?
SELECT SUM(lost) FROM table_name_67 WHERE against > 19 AND drawn < 1
CREATE TABLE table_name_67 (lost INTEGER, against VARCHAR, drawn VARCHAR)
How much Lost has an Against larger than 19, and a Drawn smaller than 1?
SELECT AVG(played) FROM table_name_63 WHERE lost = 3 AND against = 23
CREATE TABLE table_name_63 (played INTEGER, lost VARCHAR, against VARCHAR)
Which Played has a Lost of 3, and an Against of 23?
SELECT MAX(played) FROM table_name_92 WHERE against < 18 AND points < 10
CREATE TABLE table_name_92 (played INTEGER, against VARCHAR, points VARCHAR)
Which Played is the highest one that has an Against smaller than 18, and Points smaller than 10?
SELECT MAX(against) FROM table_name_31 WHERE drawn > 1 AND team = "corinthians" AND played < 7
CREATE TABLE table_name_31 (against INTEGER, played VARCHAR, drawn VARCHAR, team VARCHAR)
Which Against is the highest one that has a Drawn larger than 1, and a Team of corinthians, and a Played smaller than 7?
SELECT opponent FROM table_name_13 WHERE october < 20 AND points = 8
CREATE TABLE table_name_13 (opponent VARCHAR, october VARCHAR, points VARCHAR)
What opponent has october less than 20, and 8 for points?
SELECT position FROM table_name_1 WHERE player = "drew callander"
CREATE TABLE table_name_1 (position VARCHAR, player VARCHAR)
What position does Drew Callander play?
SELECT round FROM table_name_2 WHERE player = "ray kurpis"
CREATE TABLE table_name_2 (round VARCHAR, player VARCHAR)
What round did Ray Kurpis play?
SELECT built_by FROM table_name_44 WHERE name = "northern jaeger"
CREATE TABLE table_name_44 (built_by VARCHAR, name VARCHAR)
Which Built by has a Name of northern jaeger?
SELECT SUM(horsepowers) FROM table_name_51 WHERE year < 1974 AND tonnage = 4437
CREATE TABLE table_name_51 (horsepowers INTEGER, year VARCHAR, tonnage VARCHAR)
How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437?
SELECT date FROM table_name_96 WHERE competition = "2014 fifa world cup qualification"
CREATE TABLE table_name_96 (date VARCHAR, competition VARCHAR)
When was the 2014 fifa world cup qualification?
SELECT date FROM table_name_86 WHERE venue = "tokyo"
CREATE TABLE table_name_86 (date VARCHAR, venue VARCHAR)
When was the date of an event at Tokyo venue?
SELECT city FROM table_name_58 WHERE opponent = "poland"
CREATE TABLE table_name_58 (city VARCHAR, opponent VARCHAR)
What city did Yugoslavia play against Poland in?
SELECT date FROM table_name_56 WHERE opponent = "luxembourg"
CREATE TABLE table_name_56 (date VARCHAR, opponent VARCHAR)
What day did Yugoslavia play Luxembourg?
SELECT type_of_game FROM table_name_97 WHERE city = "ljubljana"
CREATE TABLE table_name_97 (type_of_game VARCHAR, city VARCHAR)
What type of game was played in Ljubljana?
SELECT resultsΒΉ FROM table_name_70 WHERE city = "belgrade"
CREATE TABLE table_name_70 (resultsΒΉ VARCHAR, city VARCHAR)
What's the result of the game played in Belgrade?
SELECT score FROM table_name_2 WHERE date = "march 23"
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
What was the score on March 23?
SELECT record FROM table_name_6 WHERE score = "4-2" AND visitor = "vancouver canucks"
CREATE TABLE table_name_6 (record VARCHAR, score VARCHAR, visitor VARCHAR)
When the Vancouver Canucks were visiting, what was the record when the score was 4-2?
SELECT partner FROM table_name_79 WHERE score = "6–7, 7–6, 6–7"
CREATE TABLE table_name_79 (partner VARCHAR, score VARCHAR)
Which Partner has a Score of 6–7, 7–6, 6–7?
SELECT score FROM table_name_50 WHERE date = "13 april 1997"
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
Which Score has a Date of 13 april 1997?
SELECT partner FROM table_name_38 WHERE score = "7–6, 6–3"
CREATE TABLE table_name_38 (partner VARCHAR, score VARCHAR)
Which Partner has a Score of 7–6, 6–3?
SELECT date FROM table_name_63 WHERE tournament = "bmw open"
CREATE TABLE table_name_63 (date VARCHAR, tournament VARCHAR)
Which Date has a Tournament of bmw open?
SELECT partner FROM table_name_13 WHERE tournament = "catella swedish open"
CREATE TABLE table_name_13 (partner VARCHAR, tournament VARCHAR)
Which Partner has a Tournament of catella swedish open?
SELECT date FROM table_name_89 WHERE surface = "clay" AND score = "6–3, 5–7, 2–6"
CREATE TABLE table_name_89 (date VARCHAR, surface VARCHAR, score VARCHAR)
Which Date has a Surface of clay, and a Score of 6–3, 5–7, 2–6?
SELECT winner FROM table_name_60 WHERE race_name = "tre valli varesine"
CREATE TABLE table_name_60 (winner VARCHAR, race_name VARCHAR)
Who was the winner of the tre valli varesine race?
SELECT date FROM table_name_22 WHERE uci_rating = "1.1" AND race_name = "omloop van de vlaamse scheldeboorden"
CREATE TABLE table_name_22 (date VARCHAR, uci_rating VARCHAR, race_name VARCHAR)
What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1?
SELECT date FROM table_name_54 WHERE race_name = "gp cittΓ  di camaiore"
CREATE TABLE table_name_54 (date VARCHAR, race_name VARCHAR)
What is the date of the gp cittΓ  di camaiore race?
SELECT uci_rating FROM table_name_81 WHERE location = "italy" AND team = "progetto ciclismo alplast"
CREATE TABLE table_name_81 (uci_rating VARCHAR, location VARCHAR, team VARCHAR)
What is the UCI rating of the race in Italy with the progetto ciclismo alplast team?
SELECT date FROM table_name_52 WHERE game_site = "schaeffer stadium"
CREATE TABLE table_name_52 (date VARCHAR, game_site VARCHAR)
What is the date of the game being played at Schaeffer Stadium?
SELECT AVG(points) FROM table_name_78 WHERE year > 1966 AND wins > 1
CREATE TABLE table_name_78 (points INTEGER, year VARCHAR, wins VARCHAR)
Which Points have a Year larger than 1966, and Wins larger than 1?
SELECT MIN(year) FROM table_name_47 WHERE wins < 0
CREATE TABLE table_name_47 (year INTEGER, wins INTEGER)
Which Year is the lowest one that has Wins smaller than 0?
SELECT AVG(points) FROM table_name_15 WHERE wins > 1
CREATE TABLE table_name_15 (points INTEGER, wins INTEGER)
Which Points have Wins larger than 1?
SELECT AVG(wins) FROM table_name_54 WHERE year = 1963 AND class = "50cc"
CREATE TABLE table_name_54 (wins INTEGER, year VARCHAR, class VARCHAR)
Which Wins have a Year of 1963, and a Class of 50cc?
SELECT COUNT(rank) FROM table_name_63 WHERE wins > 16 AND country = "australia"
CREATE TABLE table_name_63 (rank VARCHAR, wins VARCHAR, country VARCHAR)
What is the player from Australia's rank with more than 16 wins?
SELECT MAX(earnings___) AS $__ FROM table_name_16 WHERE wins > 19
CREATE TABLE table_name_16 (earnings___ INTEGER, wins INTEGER)
What is the highest earnings of a player with more than 19 wins?
SELECT AVG(opened) FROM table_name_19 WHERE manufacturer = "vekoma"
CREATE TABLE table_name_19 (opened INTEGER, manufacturer VARCHAR)
Which average Opened has a Manufacturer of vekoma?
SELECT MAX(opened) FROM table_name_76 WHERE themed_area = "aerial park" AND manufacturer = "zamperla"
CREATE TABLE table_name_76 (opened INTEGER, themed_area VARCHAR, manufacturer VARCHAR)
Which Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla?
SELECT themed_area FROM table_name_12 WHERE name = "troublesome trucks runaway coaster"
CREATE TABLE table_name_12 (themed_area VARCHAR, name VARCHAR)
Which Themed Area has a Name of troublesome trucks runaway coaster?
SELECT manufacturer FROM table_name_31 WHERE style = "steel sit down" AND opened > 2008
CREATE TABLE table_name_31 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR)
Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008?
SELECT position FROM table_name_44 WHERE pick < 25 AND school = "university of california"
CREATE TABLE table_name_44 (position VARCHAR, pick VARCHAR, school VARCHAR)
What position has a pick less than 25 for the university of california?
SELECT SUM(pick) FROM table_name_23 WHERE school = "tulane university"
CREATE TABLE table_name_23 (pick INTEGER, school VARCHAR)
What is the pick number for tulane university?
SELECT SUM(pick) FROM table_name_12 WHERE team = "kansas city royals"
CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR)
What is the pick number for the kansas city royals?
SELECT AVG(pick) FROM table_name_87 WHERE school = "pasco, wa"
CREATE TABLE table_name_87 (pick INTEGER, school VARCHAR)
What is the average Pick for the Pasco, Wa school?
SELECT label FROM table_name_5 WHERE format = "cd single" AND date = "1993"
CREATE TABLE table_name_5 (label VARCHAR, format VARCHAR, date VARCHAR)
What Label released a CD single in 1993?
SELECT home FROM table_name_77 WHERE record = "7–5–2"
CREATE TABLE table_name_77 (home VARCHAR, record VARCHAR)
Where was home with a record of 7–5–2?
SELECT date FROM table_name_14 WHERE record = "8–6–3"
CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR)
On what date was the record 8–6–3?
SELECT score FROM table_name_42 WHERE visitor = "pittsburgh"
CREATE TABLE table_name_42 (score VARCHAR, visitor VARCHAR)
What was the score when Pittsburgh was the visitor?
SELECT date FROM table_name_98 WHERE home = "ny rangers"
CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR)
On what date were the NY Rangers home?
SELECT visitor FROM table_name_49 WHERE record = "7–5–3"
CREATE TABLE table_name_49 (visitor VARCHAR, record VARCHAR)
Which visitor had a record of 7–5–3?
SELECT home FROM table_name_89 WHERE visitor = "detroit" AND score = "4 – 1"
CREATE TABLE table_name_89 (home VARCHAR, visitor VARCHAR, score VARCHAR)
Who was home when Detroit was visiting with a score of 4 – 1?
SELECT MIN(date) FROM table_name_92 WHERE label = "great expectations" AND format = "lp"
CREATE TABLE table_name_92 (date INTEGER, label VARCHAR, format VARCHAR)
What is the earliest date with Great Expectations label with LP format?
SELECT format FROM table_name_21 WHERE catalog = "mobil 1"
CREATE TABLE table_name_21 (format VARCHAR, catalog VARCHAR)
What format was used for Mobil 1?
SELECT result FROM table_name_98 WHERE competition = "friendly match"
CREATE TABLE table_name_98 (result VARCHAR, competition VARCHAR)
what team won the friendly match
SELECT COUNT(runner_up) FROM table_name_71 WHERE last_win < 1998 AND wins = 1 AND rank > 13
CREATE TABLE table_name_71 (runner_up VARCHAR, rank VARCHAR, last_win VARCHAR, wins VARCHAR)
Which Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larger than 13?
SELECT COUNT(last_win) FROM table_name_42 WHERE club = "mansfield town" AND wins < 1
CREATE TABLE table_name_42 (last_win VARCHAR, club VARCHAR, wins VARCHAR)
How many Last wins have a Club of mansfield town, and Wins smaller than 1?
SELECT driver FROM table_name_8 WHERE date = "16th september 1951" AND race = "dns"
CREATE TABLE table_name_8 (driver VARCHAR, date VARCHAR, race VARCHAR)
Which Driver has a Date of 16th september 1951, and a Race of dns?
SELECT race FROM table_name_47 WHERE event = "goodwood trophy" AND driver = "reg parnell"
CREATE TABLE table_name_47 (race VARCHAR, event VARCHAR, driver VARCHAR)
At which race did reg parnell win the goodwood trophy?
SELECT race FROM table_name_20 WHERE date = "31st may 1953" AND event = "grand prix de l'albigeois final"
CREATE TABLE table_name_20 (race VARCHAR, date VARCHAR, event VARCHAR)
Which Race has a Date of 31st may 1953, and an Event of grand prix de l'albigeois final?
SELECT AVG(total_cargo__metric_tonnes_) FROM table_name_97 WHERE _percentage_change = "11.8%"
CREATE TABLE table_name_97 (total_cargo__metric_tonnes_ INTEGER, _percentage_change VARCHAR)
What's the average total cargo in metric tonnes that has an 11.8% Change?
SELECT MAX(rank) FROM table_name_72 WHERE airport = "tokyo international airport"
CREATE TABLE table_name_72 (rank INTEGER, airport VARCHAR)
What is the highest rank of Tokyo International Airport?
SELECT AVG(lost) FROM table_name_92 WHERE points = 6 AND games < 5
CREATE TABLE table_name_92 (lost INTEGER, points VARCHAR, games VARCHAR)
Where the games are smaller than 5 and the points are 6, what is the average lost?
SELECT SUM(order) FROM table_name_89 WHERE built = "5/69-6/69"
CREATE TABLE table_name_89 (order INTEGER, built VARCHAR)
with build 5/69-6/69 what's the order?
SELECT outcome FROM table_name_20 WHERE score = "6–2, 6–2"
CREATE TABLE table_name_20 (outcome VARCHAR, score VARCHAR)
Which Outcome has a Score of 6–2, 6–2?
SELECT date FROM table_name_69 WHERE outcome = "winner" AND score = "7–5, 6–4"
CREATE TABLE table_name_69 (date VARCHAR, outcome VARCHAR, score VARCHAR)
Which Date has an Outcome of winner, and a Score of 7–5, 6–4?
SELECT tournament FROM table_name_23 WHERE outcome = "winner" AND surface = "clay" AND score = "6–4, 6–1"
CREATE TABLE table_name_23 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)
Which Tournament has an Outcome of winner, and a Surface of clay, and a Score of 6–4, 6–1?