question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Tell me the total number of gold for total less than 1
CREATE TABLE table_name_62 (gold VARCHAR, total INTEGER)
SELECT COUNT(gold) FROM table_name_62 WHERE total < 1
What is the total number of weeks with a game at the Milwaukee County Stadium attended by 47,897?
CREATE TABLE table_name_79 (week VARCHAR, venue VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_79 WHERE venue = "milwaukee county stadium" AND attendance = 47 OFFSET 897
What is the Comp of the Shooter with a Score of 489.5?
CREATE TABLE table_name_3 (comp VARCHAR, score VARCHAR)
SELECT comp FROM table_name_3 WHERE score = "489.5"
What is the pick number for the tight end who was picked after round 6?
CREATE TABLE table_name_67 (pick VARCHAR, round VARCHAR, position VARCHAR)
SELECT COUNT(pick) FROM table_name_67 WHERE round > 6 AND position = "tight end"
How many trains have 'Express' in their names?
CREATE TABLE train (name VARCHAR)
SELECT COUNT(*) FROM train WHERE name LIKE "%Express%"
In what series did the driver get 30 points?
CREATE TABLE table_21297652_1 (series VARCHAR, points VARCHAR)
SELECT series FROM table_21297652_1 WHERE points = 30
what is the notes for the athlete with the time of 7:38.87?
CREATE TABLE table_name_86 (notes VARCHAR, time VARCHAR)
SELECT notes FROM table_name_86 WHERE time = "7:38.87"
Which Away team has a Tie # of replay, and an Attendance of 24 november 1998, and a Home team of rotherham united?
CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR, tie_no VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_51 WHERE tie_no = "replay" AND attendance = "24 november 1998" AND home_team = "rotherham united"
Name the condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreased
CREATE TABLE table_name_4 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR)
SELECT condition FROM table_name_4 WHERE partial_thromboplastin_time = "unaffected" AND prothrombin_time = "unaffected" AND platelet_count = "decreased"
How many weeks did a game happen on September 17, 2000?
CREATE TABLE table_name_57 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_57 WHERE date = "september 17, 2000"
Which skip has Zrinka Muhek as Second?
CREATE TABLE table_name_90 (skip VARCHAR, second VARCHAR)
SELECT skip FROM table_name_90 WHERE second = "zrinka muhek"
What stadium is in Seoul?
CREATE TABLE table_name_56 (stadium VARCHAR, city VARCHAR)
SELECT stadium FROM table_name_56 WHERE city = "seoul"
What was the attendance of the game on September 18, 1965 before week 3?
CREATE TABLE table_name_72 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_72 WHERE week < 3 AND date = "september 18, 1965"
What is the lowest A Score when the B Score is 9.15, and total is 16.05?
CREATE TABLE table_name_61 (a_score INTEGER, b_score VARCHAR, total VARCHAR)
SELECT MIN(a_score) FROM table_name_61 WHERE b_score = 9.15 AND total = 16.05
What was the score when Spennymoor United as the away team?
CREATE TABLE table_name_67 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_67 WHERE away_team = "spennymoor united"
Who was the home team on November 22?
CREATE TABLE table_name_47 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_47 WHERE date = "november 22"
What was the result and score of Game #29?
CREATE TABLE table_11964047_6 (score VARCHAR, _number VARCHAR)
SELECT score FROM table_11964047_6 WHERE _number = 29
Who won when the presenter was Tatiana Stefanidou?
CREATE TABLE table_name_92 (the_winner VARCHAR, the_presenter VARCHAR)
SELECT the_winner FROM table_name_92 WHERE the_presenter = "tatiana stefanidou"
Find all information about student addresses, and sort by monthly rental in descending order.
CREATE TABLE Student_Addresses (monthly_rental VARCHAR)
SELECT * FROM Student_Addresses ORDER BY monthly_rental DESC
Which Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia?
CREATE TABLE table_name_89 (rider VARCHAR, manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT rider FROM table_name_89 WHERE laps < 24 AND grid < 12 AND manufacturer = "aprilia"
Find the name and salary of instructors whose salary is below the average salary of the instructors in the Physics department.
CREATE TABLE instructor (name VARCHAR, salary INTEGER, dept_name VARCHAR)
SELECT name, salary FROM instructor WHERE salary < (SELECT AVG(salary) FROM instructor WHERE dept_name = 'Physics')
Which Partner has an Opponents of wayne arthurs sandon stolle?
CREATE TABLE table_name_24 (partner VARCHAR, opponents VARCHAR)
SELECT partner FROM table_name_24 WHERE opponents = "wayne arthurs sandon stolle"
What event did he compete in at Taipei?
CREATE TABLE table_name_42 (format VARCHAR, location VARCHAR)
SELECT format FROM table_name_42 WHERE location = "taipei"
Tell me the date with result of l 13–9
CREATE TABLE table_name_94 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_94 WHERE result = "l 13–9"
Which Pick # is the highest and has the Rd # is under 1?
CREATE TABLE table_name_9 (pick__number INTEGER, rd__number INTEGER)
SELECT MAX(pick__number) FROM table_name_9 WHERE rd__number < 1
Who is the player with 41 legs lost?
CREATE TABLE table_18621456_22 (player VARCHAR, legs_lost VARCHAR)
SELECT player FROM table_18621456_22 WHERE legs_lost = 41
Which Total has a Country of united states, and a Player of andy north?
CREATE TABLE table_name_12 (total INTEGER, country VARCHAR, player VARCHAR)
SELECT AVG(total) FROM table_name_12 WHERE country = "united states" AND player = "andy north"
Name the upper index kcal/nm3 for 62.47
CREATE TABLE table_1868929_1 (upper_index_kcal__nm_3 VARCHAR, lower_index_mj__nm_3 VARCHAR)
SELECT upper_index_kcal__nm_3 FROM table_1868929_1 WHERE lower_index_mj__nm_3 = "62.47"
What is the Trofeo Fast Team when stage is 19?
CREATE TABLE table_name_34 (trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT trofeo_fast_team FROM table_name_34 WHERE stage = "19"
What stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification?
CREATE TABLE table_name_3 (stage__winner_ VARCHAR, general_classification VARCHAR, young_rider_classification VARCHAR)
SELECT stage__winner_ FROM table_name_3 WHERE general_classification = "thor hushovd" AND young_rider_classification = "trent lowe"
What is the location for the game on October 20 with it's corresponding attendance?
CREATE TABLE table_28768469_2 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_28768469_2 WHERE date = "October 20"
Name how other lyers say enga ullale
CREATE TABLE table_name_22 (how_other_iyers_say_it VARCHAR, how_ashtagrama_iyers_say_it VARCHAR)
SELECT how_other_iyers_say_it FROM table_name_22 WHERE how_ashtagrama_iyers_say_it = "enga ullale"
In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?
CREATE TABLE table_1008653_9 (country___endonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)
SELECT country___endonym__ FROM table_1008653_9 WHERE official_or_native_language_s___alphabet_script_ = "Irish English"
What is the 2010 for the grand slam tournaments of 2007?
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT 2010 FROM table_name_44 WHERE 2007 = "grand slam tournaments"
When charles bateman michael lyons is the gt3 winner and 9 is the round who is the gt4 winner?
CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, round VARCHAR, gt3_winner VARCHAR)
SELECT gt4_winner FROM table_30062172_3 WHERE round = 9 AND gt3_winner = "Charles Bateman Michael Lyons"
Name the Status with an Against larger than 15?
CREATE TABLE table_name_98 (status VARCHAR, against INTEGER)
SELECT status FROM table_name_98 WHERE against > 15
What was the surface of the match against bethanie mattek-sands?
CREATE TABLE table_name_83 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_83 WHERE opponent = "bethanie mattek-sands"
Name the away captain with result of wi by 9 wkts
CREATE TABLE table_name_69 (away_captain VARCHAR, result VARCHAR)
SELECT away_captain FROM table_name_69 WHERE result = "wi by 9 wkts"
what is the average gold when rank is total and silver is more than 20?
CREATE TABLE table_name_32 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT AVG(gold) FROM table_name_32 WHERE rank = "total" AND silver > 20
How many games drawn for the team that lost 11 and had 748 points?
CREATE TABLE table_1676073_12 (drawn VARCHAR, lost VARCHAR, points_for VARCHAR)
SELECT drawn FROM table_1676073_12 WHERE lost = "11" AND points_for = "748"
What is the Money of the Player with a Score of 69-71-69-72=281?
CREATE TABLE table_name_70 (money___$__ VARCHAR, score VARCHAR)
SELECT money___$__ FROM table_name_70 WHERE score = 69 - 71 - 69 - 72 = 281
What was the date of the week 9 game?
CREATE TABLE table_name_76 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_76 WHERE week = 9
Who is the manager for lootos põlva?
CREATE TABLE table_27409644_1 (manager VARCHAR, club VARCHAR)
SELECT manager FROM table_27409644_1 WHERE club = "Lootos Põlva"
What is the total swimsuit with Preliminaries smaller than 8.27?
CREATE TABLE table_name_48 (swimsuit INTEGER, preliminaries INTEGER)
SELECT SUM(swimsuit) FROM table_name_48 WHERE preliminaries < 8.27
Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5?
CREATE TABLE table_name_1 (points INTEGER, games VARCHAR, pts_game VARCHAR, nation VARCHAR)
SELECT AVG(points) FROM table_name_1 WHERE pts_game > 4 AND nation = "england" AND games < 5
How many different FSB are there for the 7140N model?
CREATE TABLE table_269920_3 (fsb__mhz_ VARCHAR, model VARCHAR)
SELECT COUNT(fsb__mhz_) FROM table_269920_3 WHERE model = "7140N"
What place is in Australia with 9 or more holes?
CREATE TABLE table_name_22 (place VARCHAR, hole VARCHAR, country VARCHAR)
SELECT place FROM table_name_22 WHERE hole > 9 AND country = "australia"
Who is the director of the film Gie?
CREATE TABLE table_13719788_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT director FROM table_13719788_1 WHERE film_title_used_in_nomination = "Gie"
Who had the highest number of rebounds on February 14?
CREATE TABLE table_name_42 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_42 WHERE date = "february 14"
What was the score in Kathmandu?
CREATE TABLE table_name_96 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_96 WHERE venue = "kathmandu"
how many open 2nd viii had u15 3rd iv being gt
CREATE TABLE table_11318462_5 (open_2nd_viii VARCHAR, u15_3rd_iv VARCHAR)
SELECT COUNT(open_2nd_viii) FROM table_11318462_5 WHERE u15_3rd_iv = "GT"
Which college had rounds smaller than 2?
CREATE TABLE table_name_80 (college VARCHAR, round INTEGER)
SELECT college FROM table_name_80 WHERE round < 2
How many affiliations does the University of Toledo have?
CREATE TABLE table_28211213_1 (affiliation VARCHAR, institution VARCHAR)
SELECT COUNT(affiliation) FROM table_28211213_1 WHERE institution = "University of Toledo"
What fraction has parentheses of 0.(3)?
CREATE TABLE table_name_58 (fraction VARCHAR, parentheses VARCHAR)
SELECT fraction FROM table_name_58 WHERE parentheses = "0.(3)"
Bob Johnson plays for which AFL team?
CREATE TABLE table_12165999_1 (afl_team VARCHAR, player VARCHAR)
SELECT afl_team FROM table_12165999_1 WHERE player = "Bob Johnson"
Name the record for may 31
CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_64 WHERE date = "may 31"
How many years have a Surface of clay, and a Score of 4 : 0?
CREATE TABLE table_name_45 (year VARCHAR, surface VARCHAR, score VARCHAR)
SELECT COUNT(year) FROM table_name_45 WHERE surface = "clay" AND score = "4 : 0"
Which type has 140 made?
CREATE TABLE table_name_79 (type VARCHAR, quantity VARCHAR)
SELECT type FROM table_name_79 WHERE quantity = "140"
How many spikes have 28.09.1981 as the date of birth, with a block greater than 318?
CREATE TABLE table_name_78 (spike INTEGER, date_of_birth VARCHAR, block VARCHAR)
SELECT SUM(spike) FROM table_name_78 WHERE date_of_birth = "28.09.1981" AND block > 318
Name the title for season number 35
CREATE TABLE table_25764073_3 (title VARCHAR, season__number VARCHAR)
SELECT title FROM table_25764073_3 WHERE season__number = 35
Tell me the venue for north melbourne
CREATE TABLE table_name_85 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_85 WHERE away_team = "north melbourne"
Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold?
CREATE TABLE table_name_96 (incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)
SELECT incumbent FROM table_name_96 WHERE first_elected = "1892" AND result = "retired to run for the senate democratic hold"
What is the purse when Aidan O'brien was the trainer?
CREATE TABLE table_name_95 (purse VARCHAR, trainer VARCHAR)
SELECT purse FROM table_name_95 WHERE trainer = "aidan o'brien"
Which school is in the hometown of Aledo, Texas?
CREATE TABLE table_11677691_5 (school VARCHAR, hometown VARCHAR)
SELECT school FROM table_11677691_5 WHERE hometown = "Aledo, Texas"
What is the label of the Year before 1979?
CREATE TABLE table_name_16 (label VARCHAR, year INTEGER)
SELECT label FROM table_name_16 WHERE year < 1979
Tell me the category for result of won and year more than 2009
CREATE TABLE table_name_77 (category VARCHAR, result VARCHAR, year VARCHAR)
SELECT category FROM table_name_77 WHERE result = "won" AND year > 2009
WHAT IS THE HIGH ASSISTS ON NOVEMBER 24?
CREATE TABLE table_name_21 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_21 WHERE date = "november 24"
How many stations have fox as the primary affiliation and have been owned since 1986?
CREATE TABLE table_1353096_1 (station VARCHAR, primary_affiliation VARCHAR, owned_since VARCHAR)
SELECT COUNT(station) FROM table_1353096_1 WHERE primary_affiliation = "Fox" AND owned_since = "1986"
What are all the distinct participant ids who attended any events?
CREATE TABLE participants_in_Events (participant_id VARCHAR)
SELECT COUNT(DISTINCT participant_id) FROM participants_in_Events
What is the date of the match against John McEnroe with a Score of 3–6, 6–3, 2–6?
CREATE TABLE table_name_73 (date VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT date FROM table_name_73 WHERE opponent = "john mcenroe" AND score = "3–6, 6–3, 2–6"
Name the least overall with pick number more than 27
CREATE TABLE table_name_56 (overall INTEGER, pick__number INTEGER)
SELECT MIN(overall) FROM table_name_56 WHERE pick__number > 27
What result occurs when the round is 4 leg 2?
CREATE TABLE table_name_87 (result VARCHAR, round VARCHAR)
SELECT result FROM table_name_87 WHERE round = "4 leg 2"
Who is in third place when the kaizer chiefs won 1-0?
CREATE TABLE table_name_9 (winners VARCHAR, score VARCHAR)
SELECT 3 AS rd_place FROM table_name_9 WHERE winners = "kaizer chiefs" AND score = "1-0"
Who was the club having less than 22 apps and ranked less than 2?
CREATE TABLE table_name_72 (club VARCHAR, apps VARCHAR, rank VARCHAR)
SELECT club FROM table_name_72 WHERE apps < 22 AND rank < 2
What is the highest number of bronze medals of west germany, which has more than 0 golds?
CREATE TABLE table_name_4 (bronze INTEGER, nation VARCHAR, gold VARCHAR)
SELECT MAX(bronze) FROM table_name_4 WHERE nation = "west germany" AND gold > 0
Where is the director Dariush Mehrjui from?
CREATE TABLE table_name_99 (country VARCHAR, director VARCHAR)
SELECT country FROM table_name_99 WHERE director = "dariush mehrjui"
What is the average amount of points when the time (s) is 81.78?
CREATE TABLE table_name_93 (points INTEGER, time___s__ VARCHAR)
SELECT AVG(points) FROM table_name_93 WHERE time___s__ = "81.78"
What was the score when the time was 14:00?
CREATE TABLE table_name_86 (score VARCHAR, time VARCHAR)
SELECT score FROM table_name_86 WHERE time = "14:00"
How many times was incumbent Noble Jones Gregory first elected?
CREATE TABLE table_1342218_17 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_1342218_17 WHERE incumbent = "Noble Jones Gregory"
What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?
CREATE TABLE table_name_41 (total_apps INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR)
SELECT MAX(total_apps) FROM table_name_41 WHERE fa_cup_apps = 26 AND total_goals > 9
What is the completed date of 蓬?
CREATE TABLE table_name_87 (completed VARCHAR, kanji VARCHAR)
SELECT completed FROM table_name_87 WHERE kanji = "蓬"
What engine does Garvey Team Lotus use?
CREATE TABLE table_name_50 (engine VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_50 WHERE entrant = "garvey team lotus"
what's the points for with points against being 556
CREATE TABLE table_13940275_5 (points_for VARCHAR, points_against VARCHAR)
SELECT points_for FROM table_13940275_5 WHERE points_against = "556"
what is the standard when the pollutant is o 3 and averaging time is 8-hour?
CREATE TABLE table_name_79 (standard VARCHAR, pollutant VARCHAR, averaging_time VARCHAR)
SELECT standard FROM table_name_79 WHERE pollutant = "o 3" AND averaging_time = "8-hour"
How many publishers put out isbn 193700788x?
CREATE TABLE table_16907214_1 (publisher VARCHAR, hardcover VARCHAR)
SELECT COUNT(publisher) FROM table_16907214_1 WHERE hardcover = "ISBN 193700788X"
What pick did George Rosso get drafted when the overall was less than 296?
CREATE TABLE table_name_71 (pick VARCHAR, name VARCHAR, overall VARCHAR)
SELECT COUNT(pick) FROM table_name_71 WHERE name = "george rosso" AND overall < 296
What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 × 6.4 gt/s qpi I/O?
CREATE TABLE table_name_12 (release_price___usd__ VARCHAR, i_o_bus VARCHAR, part_number_s_ VARCHAR)
SELECT release_price___usd__ FROM table_name_12 WHERE i_o_bus = "1 × 6.4 gt/s qpi" AND part_number_s_ = "bx80601975at80601002274aa"
What was the score of the game that had a loss of Cerutti (0-1)?
CREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_91 WHERE loss = "cerutti (0-1)"
What is the record for the game that has a loss of Johnson (5-6)?
CREATE TABLE table_name_73 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_73 WHERE loss = "johnson (5-6)"
How many laps did the car do that had a final position of 17?
CREATE TABLE table_name_79 (laps VARCHAR, fin_pos VARCHAR)
SELECT laps FROM table_name_79 WHERE fin_pos = "17"
What is the attendance for No. 15 tie?
CREATE TABLE table_name_72 (attendance VARCHAR, tie_no VARCHAR)
SELECT attendance FROM table_name_72 WHERE tie_no = "15"
How many productions are shown for rd 2?
CREATE TABLE table_26686908_2 (production VARCHAR, rd VARCHAR)
SELECT COUNT(production) FROM table_26686908_2 WHERE rd = "Rd 2"
Where did Trinidad and Tobago play?
CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR)
SELECT place FROM table_name_99 WHERE country = "trinidad and tobago"
Who was the finalist for the tournament in berlin?
CREATE TABLE table_name_14 (finalist VARCHAR, tournament VARCHAR)
SELECT finalist FROM table_name_14 WHERE tournament = "berlin"
Find the name of the airports located in Cuba or Argentina.
CREATE TABLE airports (name VARCHAR, country VARCHAR)
SELECT name FROM airports WHERE country = 'Cuba' OR country = 'Argentina'
What are the websites of schools that were founded in 1872?
CREATE TABLE table_name_11 (website VARCHAR, founded VARCHAR)
SELECT website FROM table_name_11 WHERE founded = 1872
What is the latitude of the point with a longitude of 147.1w?
CREATE TABLE table_name_7 (latitude VARCHAR, longitude VARCHAR)
SELECT latitude FROM table_name_7 WHERE longitude = "147.1w"
WHAT IS THE ROUND FOR JAMIE ARNIEL?
CREATE TABLE table_name_23 (round VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_23 WHERE player = "jamie arniel"
Which Attendance has a Round of 52, and a Home of södertälje sk?
CREATE TABLE table_name_67 (attendance INTEGER, round VARCHAR, home VARCHAR)
SELECT MIN(attendance) FROM table_name_67 WHERE round = 52 AND home = "södertälje sk"
In the week of what was the runner-up Pat Du Pré?
CREATE TABLE table_29302781_12 (week_of VARCHAR, runner_up VARCHAR)
SELECT week_of FROM table_29302781_12 WHERE runner_up = "Pat Du Pré"