question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the record at the game with a loss of Cook (14–7)?
CREATE TABLE table_name_61 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_61 WHERE loss = "cook (14–7)"
On what date were the 1997 Bridgetown games in which a Martinique girl competed?
CREATE TABLE table_name_20 (date VARCHAR, nationality VARCHAR, games VARCHAR)
SELECT date FROM table_name_20 WHERE nationality = "martinique" AND games = "1997 bridgetown"
In what Round was Tommy Norman picked?
CREATE TABLE table_name_19 (round INTEGER, player VARCHAR)
SELECT MAX(round) FROM table_name_19 WHERE player = "tommy norman"
Who is the player that is part of the team Shawinigan Dynamos (Qmjhl)?
CREATE TABLE table_name_30 (player VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT player FROM table_name_30 WHERE college_junior_club_team__league_ = "shawinigan dynamos (qmjhl)"
which Points has Wins smaller than 2?
CREATE TABLE table_name_41 (points INTEGER, wins INTEGER)
SELECT MIN(points) FROM table_name_41 WHERE wins < 2
When yakup şener is the athlete what is the round of 32?
CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, athlete VARCHAR)
SELECT round_of_32 FROM table_27294107_11 WHERE athlete = "Yakup Şener"
Which player had 252 appearances
CREATE TABLE table_24565004_7 (name VARCHAR, appearances¹ VARCHAR)
SELECT name FROM table_24565004_7 WHERE appearances¹ = 252
What is the highest rank for championships with christy heffernan with over 4 matches?
CREATE TABLE table_name_44 (rank INTEGER, player VARCHAR, matches VARCHAR)
SELECT MAX(rank) FROM table_name_44 WHERE player = "christy heffernan" AND matches > 4
List all customer status codes and the number of customers having each status code.
CREATE TABLE Customers (customer_status_code VARCHAR)
SELECT customer_status_code, COUNT(*) FROM Customers GROUP BY customer_status_code
When no.55 ipb spartak racing is the g1 winning team what are the results?
CREATE TABLE table_19722436_2 (results VARCHAR, gt1_winning_team VARCHAR)
SELECT results FROM table_19722436_2 WHERE gt1_winning_team = "No.55 IPB Spartak Racing"
What are the Cuts made with a Top-10 smaller than 2?
CREATE TABLE table_name_72 (cuts_made INTEGER, top_10 INTEGER)
SELECT SUM(cuts_made) FROM table_name_72 WHERE top_10 < 2
What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research?
CREATE TABLE table_name_5 (site VARCHAR, function VARCHAR, orbit VARCHAR, decay___utc__ VARCHAR)
SELECT site FROM table_name_5 WHERE orbit = "leo" AND decay___utc__ = "still in orbit" AND function = "magnetosphere research"
What score has 3-7 as the record?
CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_46 WHERE record = "3-7"
How many poles were there in season 2000?
CREATE TABLE table_20396_1 (poles VARCHAR, season VARCHAR)
SELECT poles FROM table_20396_1 WHERE season = 2000
Tell me the date for warsaw 1929
CREATE TABLE table_name_50 (date VARCHAR, location VARCHAR, year VARCHAR)
SELECT date FROM table_name_50 WHERE location = "warsaw" AND year = 1929
What was his record when the match went for 3:05?
CREATE TABLE table_name_62 (record VARCHAR, time VARCHAR)
SELECT record FROM table_name_62 WHERE time = "3:05"
What is the transfer window for Steven Thompson?
CREATE TABLE table_name_1 (transfer_window VARCHAR, name VARCHAR)
SELECT transfer_window FROM table_name_1 WHERE name = "steven thompson"
What are the names of companies whose headquarters are not "USA"?
CREATE TABLE Companies (name VARCHAR, Headquarters VARCHAR)
SELECT name FROM Companies WHERE Headquarters <> 'USA'
What is the lowest number of games lost that has less than 1 game drawn, a 50% winning percentage, against the netherlands, and over 2 played games?
CREATE TABLE table_name_96 (lost INTEGER, played VARCHAR, against VARCHAR, drawn VARCHAR, _percentage_won VARCHAR)
SELECT MIN(lost) FROM table_name_96 WHERE drawn < 1 AND _percentage_won = "50%" AND against = "netherlands" AND played > 2
What was the record after the game at Rich Stadium?
CREATE TABLE table_name_72 (record VARCHAR, game_site VARCHAR)
SELECT record FROM table_name_72 WHERE game_site = "rich stadium"
What is the frequency of the model whose part number is ado520biaa5do?
CREATE TABLE table_13869651_3 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT frequency FROM table_13869651_3 WHERE part_number_s_ = "ADO520BIAA5DO"
Name the most height
CREATE TABLE table_25360865_1 (weight INTEGER)
SELECT MAX(weight) FROM table_25360865_1
what is the title where romaji is titles da.i.su.ki
CREATE TABLE table_10979230_5 (japanese_title VARCHAR, romaji_title VARCHAR)
SELECT japanese_title FROM table_10979230_5 WHERE romaji_title = "Da.i.su.ki"
What was the time of the bout against Dave Menne?
CREATE TABLE table_name_33 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_33 WHERE opponent = "dave menne"
What is the largest number of tds scored for a player?
CREATE TABLE table_18064020_21 (td INTEGER)
SELECT MAX(td) FROM table_18064020_21
Who did the team play against in the game that resulted with a loss?
CREATE TABLE table_21063459_1 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_21063459_1 WHERE result = "Loss"
What's the Loss listed for the Opponent of California Angels and has an Attendance of 57,762?
CREATE TABLE table_name_31 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_31 WHERE opponent = "california angels" AND attendance = "57,762"
What episode number has 2j5352 as a production code?
CREATE TABLE table_24625467_1 (no VARCHAR, production_code VARCHAR)
SELECT no FROM table_24625467_1 WHERE production_code = "2J5352"
How many Spanish word is there for the Portuguese bem-vindo?
CREATE TABLE table_26614365_5 (spanish VARCHAR, portuguese VARCHAR)
SELECT COUNT(spanish) FROM table_26614365_5 WHERE portuguese = "Bem-vindo"
What is the lowest density of serravalle scrivia?
CREATE TABLE table_name_87 (density__inhabitants_km_2__ INTEGER, city VARCHAR)
SELECT MIN(density__inhabitants_km_2__) FROM table_name_87 WHERE city = "serravalle scrivia"
WHich Studio host has a Year of 2003-04?
CREATE TABLE table_name_42 (studio_host VARCHAR, year VARCHAR)
SELECT studio_host FROM table_name_42 WHERE year = "2003-04"
What is every value for rebounds when steals is 19?
CREATE TABLE table_25352324_5 (rebounds VARCHAR, steals VARCHAR)
SELECT rebounds FROM table_25352324_5 WHERE steals = 19
What are the id of students who registered courses or attended courses?
CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)
SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance
In the final against Ashley Harkleroad what was the score?
CREATE TABLE table_name_21 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_21 WHERE opponent_in_the_final = "ashley harkleroad"
What was the location that led to a record of 9-0-0?
CREATE TABLE table_name_95 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_95 WHERE record = "9-0-0"
What was the score in the game against Boston?
CREATE TABLE table_17326036_5 (score VARCHAR, team VARCHAR)
SELECT score FROM table_17326036_5 WHERE team = "Boston"
What is the highest rank where the distance is 52.73?
CREATE TABLE table_26454128_9 (rank INTEGER, distance__metres_ VARCHAR)
SELECT MAX(rank) FROM table_26454128_9 WHERE distance__metres_ = "52.73"
Who was the opponent at the game at Madison Square Garden?
CREATE TABLE table_name_19 (opponent VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_19 WHERE location_attendance = "madison square garden"
How many counties have a population of 2266?
CREATE TABLE table_22815568_3 (county VARCHAR, population VARCHAR)
SELECT COUNT(county) FROM table_22815568_3 WHERE population = 2266
What rank is the team with 1 silver, 3 bronze and a total of less than 8 medals?
CREATE TABLE table_name_32 (rank VARCHAR, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(rank) FROM table_name_32 WHERE silver = 1 AND bronze = 3 AND total < 8
What round did the fight against Sofia Bagherdai go to?
CREATE TABLE table_name_74 (round VARCHAR, opponent VARCHAR)
SELECT round FROM table_name_74 WHERE opponent = "sofia bagherdai"
What was the score of the game where the home team was the cairns taipans?
CREATE TABLE table_name_85 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_85 WHERE home_team = "cairns taipans"
What is the earliest year in which Requiem for a Dream was in the running for Best Director?
CREATE TABLE table_name_21 (year INTEGER, title VARCHAR, category VARCHAR)
SELECT MIN(year) FROM table_name_21 WHERE title = "requiem for a dream" AND category = "best director"
what is the college/junior/club team (league) when the round is less than 7?
CREATE TABLE table_name_82 (college_junior_club_team__league_ VARCHAR, round INTEGER)
SELECT college_junior_club_team__league_ FROM table_name_82 WHERE round < 7
What was the rank# of the opponent when the result of the game was w42-14?
CREATE TABLE table_name_53 (rank__number VARCHAR, result VARCHAR)
SELECT rank__number FROM table_name_53 WHERE result = "w42-14"
what's the night rank with viewers (m) of 6.63
CREATE TABLE table_11354111_3 (night_rank VARCHAR, viewers__m_ VARCHAR)
SELECT night_rank FROM table_11354111_3 WHERE viewers__m_ = "6.63"
What kind of bike had a grid less than 23, an accident under time, and Graeme Gowland as a rider?
CREATE TABLE table_name_7 (bike VARCHAR, rider VARCHAR, grid VARCHAR, time VARCHAR)
SELECT bike FROM table_name_7 WHERE grid < 23 AND time = "accident" AND rider = "graeme gowland"
What Player has a Place of 2?
CREATE TABLE table_name_78 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_78 WHERE place = "2"
What position did a. j. feeley play who was picked in round 5?
CREATE TABLE table_name_70 (position VARCHAR, round VARCHAR, player VARCHAR)
SELECT position FROM table_name_70 WHERE round = 5 AND player = "a. j. feeley"
who was the opponent when the attendance was larger than 54,766?
CREATE TABLE table_name_27 (opponent VARCHAR, attendance INTEGER)
SELECT opponent FROM table_name_27 WHERE attendance > 54 OFFSET 766
In what Round was a player from College of Connecticut drafted?
CREATE TABLE table_name_1 (round VARCHAR, college VARCHAR)
SELECT round FROM table_name_1 WHERE college = "connecticut"
What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)?
CREATE TABLE table_name_45 (date VARCHAR, athlete VARCHAR, record VARCHAR)
SELECT date FROM table_name_45 WHERE athlete = "yelena isinbayeva" AND record = "4.90m(16ft0¾in)"
Who created One Night in Lisbon in 1941?
CREATE TABLE table_name_78 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, date VARCHAR, title VARCHAR)
SELECT theatre, _studio, _or_network FROM table_name_78 WHERE date = "1941" AND title = "one night in lisbon"
What is the name of the Opponent when there is a Record of 39-19?
CREATE TABLE table_name_79 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_79 WHERE record = "39-19"
What is the 2013 press freedom index of the country Egypt?
CREATE TABLE table_name_20 (country VARCHAR)
SELECT 2013 AS _press_freedom_index FROM table_name_20 WHERE country = "egypt"
What was the 1st leg score for the team with an Agg score of 151-134?
CREATE TABLE table_name_36 (agg VARCHAR)
SELECT 1 AS st_leg FROM table_name_36 WHERE agg = "151-134"
What is the date of the poll where Murray had 11% from the Suffolk University source?
CREATE TABLE table_name_1 (date VARCHAR, source VARCHAR, murray VARCHAR)
SELECT date FROM table_name_1 WHERE source = "suffolk university" AND murray = "11%"
What is T7 Place Player Justin Leonard's Score?
CREATE TABLE table_name_31 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_31 WHERE place = "t7" AND player = "justin leonard"
What is the sum of Round with a Position that is center?
CREATE TABLE table_name_88 (round INTEGER, position VARCHAR)
SELECT SUM(round) FROM table_name_88 WHERE position = "center"
Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano?
CREATE TABLE table_name_77 (party VARCHAR, years_in_assembly VARCHAR, name VARCHAR)
SELECT party FROM table_name_77 WHERE years_in_assembly = "2008–present" AND name = "tom ammiano"
What was the date of the match with a winning score of –7 (67-72-69-69=277)?
CREATE TABLE table_name_10 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_10 WHERE winning_score = –7(67 - 72 - 69 - 69 = 277)
What is the Money ($) player Loren Roberts has made?
CREATE TABLE table_name_93 (money___ INTEGER, player VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_93 WHERE player = "loren roberts"
What is the highest number of doctorates the college of informatics and systems, which has 0 specialists and less than 2 master's degrees, have?
CREATE TABLE table_name_10 (doctorate INTEGER, masters VARCHAR, specialist VARCHAR, college VARCHAR)
SELECT MAX(doctorate) FROM table_name_10 WHERE specialist = 0 AND college = "informatics and systems" AND masters < 2
What is the earliest year Stuart Janney III was an owner?
CREATE TABLE table_name_10 (year INTEGER, owner VARCHAR)
SELECT MIN(year) FROM table_name_10 WHERE owner = "stuart janney iii"
Name the most bronze for silver more than 6 and total less than 127 with gold less than 11
CREATE TABLE table_name_17 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_17 WHERE silver > 6 AND total < 127 AND gold < 11
What rank is the airport in Fortaleza?
CREATE TABLE table_name_19 (rank VARCHAR, location VARCHAR)
SELECT rank FROM table_name_19 WHERE location = "fortaleza"
What Name is administered by oral or iv, and is being investigated for thyroid imaging thyroid metastases imaging?
CREATE TABLE table_name_61 (name VARCHAR, route_of_administration VARCHAR, investigation VARCHAR)
SELECT name FROM table_name_61 WHERE route_of_administration = "oral or iv" AND investigation = "thyroid imaging thyroid metastases imaging"
How many pick numbers did Matt Marquess have?
CREATE TABLE table_name_57 (pick__number VARCHAR, player VARCHAR)
SELECT COUNT(pick__number) FROM table_name_57 WHERE player = "matt marquess"
Who is the week 12 for the week 4 of Gerard Ewelina?
CREATE TABLE table_name_35 (week_12 VARCHAR, week_4 VARCHAR)
SELECT week_12 FROM table_name_35 WHERE week_4 = "gerard ewelina"
who athe party where district is louisiana 2?
CREATE TABLE table_1342198_18 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1342198_18 WHERE district = "Louisiana 2"
what's the tuesday time with location being millhopper
CREATE TABLE table_11019212_1 (tuesday VARCHAR, location VARCHAR)
SELECT tuesday FROM table_11019212_1 WHERE location = "Millhopper"
What song was 2nd (25,517) in televoting (votes)?
CREATE TABLE table_name_73 (song VARCHAR, televoting__votes_ VARCHAR)
SELECT song FROM table_name_73 WHERE televoting__votes_ = "2nd (25,517)"
What is the average number of attendance at home games for each year?
CREATE TABLE home_game (YEAR VARCHAR, attendance INTEGER)
SELECT YEAR, AVG(attendance) FROM home_game GROUP BY YEAR
Find the average age and number of male students (with sex M) from each city.
CREATE TABLE student (city_code VARCHAR, age INTEGER, sex VARCHAR)
SELECT COUNT(*), AVG(age), city_code FROM student WHERE sex = 'M' GROUP BY city_code
What team did the Maple Leafs score 9 points against?
CREATE TABLE table_23453931_4 (opponent VARCHAR, points VARCHAR)
SELECT opponent FROM table_23453931_4 WHERE points = 9
Can you tell me the average Total votes that has the # of seats won smaller than 0?
CREATE TABLE table_name_75 (total_votes INTEGER, _number_of_seats_won INTEGER)
SELECT AVG(total_votes) FROM table_name_75 WHERE _number_of_seats_won < 0
Where is il-36β located?
CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, name VARCHAR)
SELECT chromosomal_location FROM table_29871617_1 WHERE name = "IL-36β"
What is the smallest diameter for Eirene Tholus?
CREATE TABLE table_name_97 (diameter__km_ INTEGER, name VARCHAR)
SELECT MIN(diameter__km_) FROM table_name_97 WHERE name = "eirene tholus"
What region has 57 vehicles?
CREATE TABLE table_name_35 (region VARCHAR, vehicles__1209_ VARCHAR)
SELECT region FROM table_name_35 WHERE vehicles__1209_ = 57
How many episodes did actress Vanessa Ferlito appear in?
CREATE TABLE table_11240028_1 (episodes VARCHAR, portrayed_by VARCHAR)
SELECT episodes FROM table_11240028_1 WHERE portrayed_by = "Vanessa Ferlito"
Name the number of giants points for opponents being 31
CREATE TABLE table_16661199_2 (giants_points VARCHAR, opponents VARCHAR)
SELECT COUNT(giants_points) FROM table_16661199_2 WHERE opponents = 31
What is year Built of the Moulin de Momalle Mill?
CREATE TABLE table_name_16 (built INTEGER, name_of_mill VARCHAR)
SELECT MAX(built) FROM table_name_16 WHERE name_of_mill = "moulin de momalle"
What was the highest number of goals for 1922–1935?
CREATE TABLE table_name_18 (goals INTEGER, years VARCHAR)
SELECT MAX(goals) FROM table_name_18 WHERE years = "1922–1935"
Which of the lowest years had a Wheel arrangement that was 0-4-2t?
CREATE TABLE table_name_86 (year_made INTEGER, wheel_arrangement VARCHAR)
SELECT MIN(year_made) FROM table_name_86 WHERE wheel_arrangement = "0-4-2t"
Who replaced the manager on Team Cfr Cluj?
CREATE TABLE table_17115950_2 (replaced_by VARCHAR, team VARCHAR)
SELECT replaced_by FROM table_17115950_2 WHERE team = "CFR Cluj"
Name the least production code for bryan moore & chris peterson
CREATE TABLE table_27988408_1 (production_code INTEGER, written_by VARCHAR)
SELECT MIN(production_code) FROM table_27988408_1 WHERE written_by = "Bryan Moore & Chris Peterson"
What is the weight with the shape of scalloped, and that is a size of 20mm (across scallops)?
CREATE TABLE table_name_92 (weight VARCHAR, shape VARCHAR, size VARCHAR)
SELECT weight FROM table_name_92 WHERE shape = "scalloped" AND size = "20mm (across scallops)"
WHAT DATE HAS A CATALOG OF 486553.4?
CREATE TABLE table_name_70 (date INTEGER, catalog VARCHAR)
SELECT MAX(date) FROM table_name_70 WHERE catalog = "486553.4"
What are all names for the position FS?
CREATE TABLE table_14624447_24 (name VARCHAR, position VARCHAR)
SELECT name FROM table_14624447_24 WHERE position = "FS"
What champion has 1981 as the year?
CREATE TABLE table_name_33 (champion VARCHAR, year VARCHAR)
SELECT champion FROM table_name_33 WHERE year = "1981"
How big was the crowd when collingwood visited?
CREATE TABLE table_name_46 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_46 WHERE away_team = "collingwood"
Tell me the right ascension for open cluster and NGC number more than 2547
CREATE TABLE table_name_59 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = "open cluster" AND ngc_number > 2547
How many lanes have a Nationality of iceland?
CREATE TABLE table_name_58 (lane INTEGER, nationality VARCHAR)
SELECT SUM(lane) FROM table_name_58 WHERE nationality = "iceland"
What was the attendance for the home team of Walsall?
CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_48 WHERE home_team = "walsall"
On songs with track numbers smaller than number 17 and catalogues of LSP 2231, who are the writer(s)?
CREATE TABLE table_name_27 (writer_s_ VARCHAR, catalogue VARCHAR, track VARCHAR)
SELECT writer_s_ FROM table_name_27 WHERE catalogue = "lsp 2231" AND track < 17
How many locations are listed for the winner Temple?
CREATE TABLE table_22645714_5 (tournament_venue__city_ VARCHAR, tournament_winner VARCHAR)
SELECT COUNT(tournament_venue__city_) FROM table_22645714_5 WHERE tournament_winner = "Temple"
Who is in November in the year 1979?
CREATE TABLE table_name_36 (november VARCHAR, year VARCHAR)
SELECT november FROM table_name_36 WHERE year = 1979
For sep 18 what is the total number of 1 prize ($)
CREATE TABLE table_name_56 (date VARCHAR)
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_name_56 WHERE date = "sep 18"
List the series number for season 12.
CREATE TABLE table_27437601_2 (no_in_series VARCHAR, no_in_season VARCHAR)
SELECT COUNT(no_in_series) FROM table_27437601_2 WHERE no_in_season = 12
Can you tell me the Years that has the Name of arapohue school?
CREATE TABLE table_name_70 (years VARCHAR, name VARCHAR)
SELECT years FROM table_name_70 WHERE name = "arapohue school"