question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many losses did the club who had 9 bonus points and 11 wins have?
CREATE TABLE table_27293285_2 (lost VARCHAR, bonus_points VARCHAR, won VARCHAR)
SELECT lost FROM table_27293285_2 WHERE bonus_points = "9" AND won = "11"
What is the Density (hab/ km²) when the population (hab) is 58 414*?
CREATE TABLE table_name_53 (density__hab__km²__ VARCHAR, population__hab_ VARCHAR)
SELECT density__hab__km²__ FROM table_name_53 WHERE population__hab_ = "58 414*"
What is the lowest Not Outs with an average lower than 31.25, fewer than 13 matches, and fewer than 327 runs?
CREATE TABLE table_name_8 (not_outs INTEGER, runs VARCHAR, average VARCHAR, matches VARCHAR)
SELECT MIN(not_outs) FROM table_name_8 WHERE average < 31.25 AND matches < 13 AND runs < 327
What is the Total for the Player with a To par of +11?
CREATE TABLE table_name_17 (total INTEGER, to_par VARCHAR)
SELECT MAX(total) FROM table_name_17 WHERE to_par = "+11"
What is the highest chimore municipalities with 9 pojo municipalities and less than 7 totora municipalities?
CREATE TABLE table_name_76 (chimoré_municipality INTEGER, pojo_municipality VARCHAR, totora_municipality VARCHAR)
SELECT MAX(chimoré_municipality) FROM table_name_76 WHERE pojo_municipality = 9 AND totora_municipality < 7
What is the Diameter (km) of the Valle with a Longitude of 152.5e named before 1997?
CREATE TABLE table_name_52 (diameter__km_ INTEGER, longitude VARCHAR, year_named VARCHAR)
SELECT MAX(diameter__km_) FROM table_name_52 WHERE longitude = "152.5e" AND year_named < 1997
Who has the lowest earnings that has a rank smaller than 2?
CREATE TABLE table_name_38 (earnings__ INTEGER, rank INTEGER)
SELECT MIN(earnings__) AS $__ FROM table_name_38 WHERE rank < 2
What's the series number of the episode that's written by Elizabeth Devine?
CREATE TABLE table_13273629_2 (no_in_series INTEGER, written_by VARCHAR)
SELECT MIN(no_in_series) FROM table_13273629_2 WHERE written_by = "Elizabeth Devine"
How many were in attendance at the game where the visiting team was the Jazz?
CREATE TABLE table_name_67 (attendance INTEGER, visitor VARCHAR)
SELECT SUM(attendance) FROM table_name_67 WHERE visitor = "jazz"
Name the june when it has july of 84 °f / 28.9 °c
CREATE TABLE table_name_28 (jun VARCHAR, jul VARCHAR)
SELECT jun FROM table_name_28 WHERE jul = "84 °f / 28.9 °c"
what's the result with incumbent being william h. ayres
CREATE TABLE table_1342013_34 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1342013_34 WHERE incumbent = "William H. Ayres"
What country has a 70-73-70=213 score?
CREATE TABLE table_name_62 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_62 WHERE score = 70 - 73 - 70 = 213
When did construction start on the Power station with a net MWE of 1190
CREATE TABLE table_143352_1 (construction_started INTEGER, net_mwe VARCHAR)
SELECT MIN(construction_started) FROM table_143352_1 WHERE net_mwe = 1190
What is the final score if the partner is Woodforde?
CREATE TABLE table_22597626_2 (score_in_the_final VARCHAR, partner VARCHAR)
SELECT score_in_the_final FROM table_22597626_2 WHERE partner = "Woodforde"
how many 20-39% are in pont-de-vivaux?
CREATE TABLE table_29615165_5 (_percentage_20_39_years VARCHAR, quartier VARCHAR)
SELECT COUNT(_percentage_20_39_years) FROM table_29615165_5 WHERE quartier = "Pont-de-Vivaux"
What is the lowest Round, when Pick is 9 (via Hamilton)?
CREATE TABLE table_name_66 (round INTEGER, pick VARCHAR)
SELECT MIN(round) FROM table_name_66 WHERE pick = "9 (via hamilton)"
What's the total number of crew chiefs of the Fas Lane Racing team?
CREATE TABLE table_1266602_1 (crew_chief VARCHAR, team VARCHAR)
SELECT COUNT(crew_chief) FROM table_1266602_1 WHERE team = "FAS Lane Racing"
Which Weight (kg) has a Manufacturer of fujitsu, and a Model of lifebook p1610?
CREATE TABLE table_name_67 (weight__kg_ INTEGER, manufacturer VARCHAR, model VARCHAR)
SELECT AVG(weight__kg_) FROM table_name_67 WHERE manufacturer = "fujitsu" AND model = "lifebook p1610"
How many lowest mark entries are there when % passed is 76?
CREATE TABLE table_29842201_1 (lowest_mark VARCHAR, _percentage_pass VARCHAR)
SELECT COUNT(lowest_mark) FROM table_29842201_1 WHERE _percentage_pass = 76
Who was the artist who worked on the stories published in 1966?
CREATE TABLE table_23963073_1 (artist VARCHAR, date_of_publication VARCHAR)
SELECT artist FROM table_23963073_1 WHERE date_of_publication = 1966
Name the total number of draw for played more than 18
CREATE TABLE table_name_47 (draw VARCHAR, played INTEGER)
SELECT COUNT(draw) FROM table_name_47 WHERE played > 18
Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1?
CREATE TABLE table_name_45 (extra_points INTEGER, touchdowns VARCHAR, points VARCHAR, player VARCHAR)
SELECT SUM(extra_points) FROM table_name_45 WHERE points < 12 AND player = "chuck bernard" AND touchdowns > 1
What is the Result for Goal 3?
CREATE TABLE table_name_30 (result VARCHAR, goal VARCHAR)
SELECT result FROM table_name_30 WHERE goal = 3
Which Date had an Opponent of buffalo bills?
CREATE TABLE table_name_50 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_50 WHERE opponent = "buffalo bills"
What stadium was the Fiesta Bowl played at?
CREATE TABLE table_name_74 (stadium VARCHAR, bowl_game VARCHAR)
SELECT stadium FROM table_name_74 WHERE bowl_game = "fiesta bowl"
How many exhibition are there in year 2005 or after?
CREATE TABLE exhibition (YEAR VARCHAR)
SELECT COUNT(*) FROM exhibition WHERE YEAR >= 2005
Show the locations of parties with hosts older than 50.
CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Host_ID VARCHAR, Age INTEGER)
SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50
Who won on 3 june?
CREATE TABLE table_name_35 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_35 WHERE date = "3 june"
Name the most applications for 1986
CREATE TABLE table_20007413_3 (applications INTEGER, year VARCHAR)
SELECT MAX(applications) FROM table_20007413_3 WHERE year = "1986"
What day was the score 1-0?
CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_39 WHERE score = "1-0"
What is the Voges-Proskauer reading for proteus mirabilis?
CREATE TABLE table_name_70 (voges_proskauer VARCHAR, species VARCHAR)
SELECT voges_proskauer FROM table_name_70 WHERE species = "proteus mirabilis"
What is the grid value which has Time/Retired value of accident?
CREATE TABLE table_name_57 (grid VARCHAR, time_retired VARCHAR)
SELECT grid FROM table_name_57 WHERE time_retired = "accident"
What is the highest episode of Wood Flutes segment c?
CREATE TABLE table_name_65 (episode INTEGER, segment_c VARCHAR)
SELECT MAX(episode) FROM table_name_65 WHERE segment_c = "wood flutes"
Find the names of all person sorted in the descending order using age.
CREATE TABLE Person (name VARCHAR, age VARCHAR)
SELECT name FROM Person ORDER BY age DESC
Name the population 2010 census for population 2000 census of 920599
CREATE TABLE table_14986292_1 (population__2010_census_ VARCHAR, population_2000_census VARCHAR)
SELECT population__2010_census_ FROM table_14986292_1 WHERE population_2000_census = 920599
Which city in the mideast region is the hot of Temple University?
CREATE TABLE table_name_39 (city VARCHAR, region VARCHAR, host VARCHAR)
SELECT city FROM table_name_39 WHERE region = "mideast" AND host = "temple university"
List the record company shared by the most number of orchestras.
CREATE TABLE orchestra (Record_Company VARCHAR)
SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1
What is the position of the player with a unanimous no result without a college hall of fame?
CREATE TABLE table_name_34 (position VARCHAR, unanimous VARCHAR, college_hall_of_fame VARCHAR)
SELECT position FROM table_name_34 WHERE unanimous = "no" AND college_hall_of_fame = "no"
WHERE IS ANDRE PETERSSON FROM?
CREATE TABLE table_11803648_17 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_11803648_17 WHERE player = "Andre Petersson"
How many players were names Howard Eisley?
CREATE TABLE table_11545282_5 (no VARCHAR, player VARCHAR)
SELECT COUNT(no) FROM table_11545282_5 WHERE player = "Howard Eisley"
On what date was the record 21-25?
CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_79 WHERE record = "21-25"
What was the score of the Kings game attended by more than 18,630 people?
CREATE TABLE table_name_76 (score VARCHAR, attendance INTEGER)
SELECT score FROM table_name_76 WHERE attendance > 18 OFFSET 630
What date was the game when away team northampton town played?
CREATE TABLE table_name_43 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_43 WHERE away_team = "northampton town"
What is the tie when the home team is Stoke City?
CREATE TABLE table_24887326_6 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_24887326_6 WHERE home_team = "Stoke City"
Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango?
CREATE TABLE table_name_58 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)
SELECT japanese_title FROM table_name_58 WHERE tv_station = "tbs" AND romaji_title = "hana yori dango"
what's the mole with prize money being €24,475
CREATE TABLE table_13036251_1 (the_mole VARCHAR, prize_money VARCHAR)
SELECT the_mole FROM table_13036251_1 WHERE prize_money = "€24,475"
What is the platform if the weight is 131.5g?
CREATE TABLE table (platform VARCHAR, weight VARCHAR)
SELECT platform FROM table WHERE weight = "131.5g"
What is the most wins for a position with more than 30 played and a goal difference of 11?
CREATE TABLE table_name_46 (wins INTEGER, goal_difference VARCHAR, played VARCHAR)
SELECT MAX(wins) FROM table_name_46 WHERE goal_difference = 11 AND played > 30
Can you tell me the lowest Pts/game that has the Games larger than 6?
CREATE TABLE table_name_98 (pts_game INTEGER, games INTEGER)
SELECT MIN(pts_game) FROM table_name_98 WHERE games > 6
Was it a home game on the date of April 6?
CREATE TABLE table_name_6 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_6 WHERE date = "april 6"
Which PBA team has a College of nu?
CREATE TABLE table_name_61 (pba_team VARCHAR, college VARCHAR)
SELECT pba_team FROM table_name_61 WHERE college = "nu"
What is the average of someone with more than 19 wickets and less than 16 matches?
CREATE TABLE table_name_13 (average INTEGER, wickets VARCHAR, matches VARCHAR)
SELECT AVG(average) FROM table_name_13 WHERE wickets > 19 AND matches < 16
What is the total number of Losses when the percentage is 54.83, with more than 8 points?
CREATE TABLE table_name_91 (losses VARCHAR, percentage VARCHAR, points VARCHAR)
SELECT COUNT(losses) FROM table_name_91 WHERE percentage = 54.83 AND points > 8
what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes
CREATE TABLE table_1357052_6 (distribution VARCHAR, grsecurity VARCHAR, compile_time_buffer_checks VARCHAR)
SELECT distribution FROM table_1357052_6 WHERE grsecurity = "Optional" AND compile_time_buffer_checks = "Yes"
What is the 3-dart average with a high checkout of 112?
CREATE TABLE table_20948329_1 (high_checkout VARCHAR)
SELECT 3 AS _dart_average FROM table_20948329_1 WHERE high_checkout = 112
In what studio was the film grossing $457,640,427 made?
CREATE TABLE table_name_7 (studio VARCHAR, worldwide_gross VARCHAR)
SELECT studio FROM table_name_7 WHERE worldwide_gross = "$457,640,427"
What was the total number of weeks with a result of l 31-21?
CREATE TABLE table_name_33 (week VARCHAR, result VARCHAR)
SELECT COUNT(week) FROM table_name_33 WHERE result = "l 31-21"
Who had highest points during game against the Utah Jazz?
CREATE TABLE table_27902171_6 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_27902171_6 WHERE team = "Utah Jazz"
What's the count for obese children and adolescents ranked 48?
CREATE TABLE table_name_1 (obese_children_and_adolescents VARCHAR, obesity_rank VARCHAR)
SELECT obese_children_and_adolescents FROM table_name_1 WHERE obesity_rank = 48
How many gas companies are there?
CREATE TABLE company (Id VARCHAR)
SELECT COUNT(*) FROM company
Name the home team when away team is kilmarnock
CREATE TABLE table_15173650_2 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_15173650_2 WHERE away_team = "Kilmarnock"
Name the number of population for врбас
CREATE TABLE table_2562572_20 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_20 WHERE cyrillic_name_other_names = "Врбас"
What school/club did the player who layed shooting guard attend?
CREATE TABLE table_name_35 (school_club_team VARCHAR, position VARCHAR)
SELECT school_club_team FROM table_name_35 WHERE position = "shooting guard"
HOW MANY GAMES WERE LOST BY 12 POINTS?
CREATE TABLE table_12807904_3 (points_for VARCHAR, lost VARCHAR)
SELECT COUNT(points_for) FROM table_12807904_3 WHERE lost = "12"
Which Away Team has a Tie no of replay and a Home Team of Chesterfield?
CREATE TABLE table_name_55 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_55 WHERE tie_no = "replay" AND home_team = "chesterfield"
Show all the locations where some cinemas were opened in both year 2010 and year 2011.
CREATE TABLE cinema (LOCATION VARCHAR, openning_year VARCHAR)
SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011
The episode with production code 9abx02 was originally aired on what date?
CREATE TABLE table_10088101_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_10088101_1 WHERE production_code = "9ABX02"
Who was the original artist for week number Top 16 (8 women)?
CREATE TABLE table_15796072_1 (original_artist VARCHAR, week__number VARCHAR)
SELECT original_artist FROM table_15796072_1 WHERE week__number = "Top 16 (8 Women)"
What was the average value for Fall 07 when Fall 09 is less than 296?
CREATE TABLE table_name_99 (fall_07 INTEGER, fall_09 INTEGER)
SELECT AVG(fall_07) FROM table_name_99 WHERE fall_09 < 296
In Week 13, who was the opponent?
CREATE TABLE table_name_98 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_98 WHERE week = 13
What was the to par that goes with the score 68-74-69=211?
CREATE TABLE table_name_70 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_70 WHERE score = 68 - 74 - 69 = 211
How many years was the chassis a lotus-ford 38/7?
CREATE TABLE table_181892_4 (year VARCHAR, chassis VARCHAR)
SELECT COUNT(year) FROM table_181892_4 WHERE chassis = "Lotus-Ford 38/7"
Name the high points for record 9-4
CREATE TABLE table_22654073_6 (high_points VARCHAR, record VARCHAR)
SELECT high_points FROM table_22654073_6 WHERE record = "9-4"
What is the population of the year featuring an 87.5% German population?
CREATE TABLE table_name_51 (population VARCHAR, germans VARCHAR)
SELECT population FROM table_name_51 WHERE germans = "87.5%"
Which city/state was associated with a contestant whose status was 2nd runner-up?
CREATE TABLE table_name_52 (city_state VARCHAR, status VARCHAR)
SELECT city_state FROM table_name_52 WHERE status = "2nd runner-up"
What status is shown for Cadeby?
CREATE TABLE table_name_17 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_17 WHERE name = "cadeby"
How many Malaysia Cups have 0 for the total with a league greater than 0?
CREATE TABLE table_name_2 (malaysia_cup VARCHAR, total VARCHAR, league VARCHAR)
SELECT COUNT(malaysia_cup) FROM table_name_2 WHERE total = 0 AND league > 0
What college/junior/club teams do the players from the St. Louis Blues come from?
CREATE TABLE table_1013129_11 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT college_junior_club_team FROM table_1013129_11 WHERE nhl_team = "St. Louis Blues"
Who was performer 1 in the episode number 7 where Heather Anne Campbell was performer 2?
CREATE TABLE table_23294081_11 (performer_1 VARCHAR, performer_2 VARCHAR, _number VARCHAR)
SELECT performer_1 FROM table_23294081_11 WHERE performer_2 = "Heather Anne Campbell" AND _number = 7
tell who made the most scores on new jersey
CREATE TABLE table_13464416_6 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_13464416_6 WHERE team = "New Jersey"
Who is the opponent in the final on 24 November 2008?
CREATE TABLE table_name_43 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_43 WHERE date = "24 november 2008"
What is the total fat with a smoke point of °c () and 37g of polyunsaturated fat?
CREATE TABLE table_name_33 (total_fat VARCHAR, smoke_point VARCHAR, polyunsaturated_fat VARCHAR)
SELECT total_fat FROM table_name_33 WHERE smoke_point = "°c ()" AND polyunsaturated_fat = "37g"
What is listed in new points when status is second round lost to xavier malisse?
CREATE TABLE table_29572583_19 (new_points INTEGER, status VARCHAR)
SELECT MIN(new_points) FROM table_29572583_19 WHERE status = "Second round lost to Xavier Malisse"
How many matches did goalkeeper Wilfredo Caballero have an average less than 1.11?
CREATE TABLE table_name_74 (matches INTEGER, goalkeeper VARCHAR, average VARCHAR)
SELECT SUM(matches) FROM table_name_74 WHERE goalkeeper = "wilfredo caballero" AND average < 1.11
What is the first name of students enrolled in class ACCT-211 and got grade C?
CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR, enroll_grade VARCHAR)
SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'
What is Hon. Vicente Q. Roxas appointment date?
CREATE TABLE table_name_25 (date_of_appointment VARCHAR, name VARCHAR)
SELECT date_of_appointment FROM table_name_25 WHERE name = "hon. vicente q. roxas"
Tell me the average spectators for 2006-06-21 and time more than 21
CREATE TABLE table_name_56 (spectators INTEGER, date VARCHAR, time_cet_ VARCHAR)
SELECT AVG(spectators) FROM table_name_56 WHERE date = "2006-06-21" AND time_cet_ > 21
Name the points for when points against is of 450
CREATE TABLE table_name_97 (points_for VARCHAR, points_against VARCHAR)
SELECT points_for FROM table_name_97 WHERE points_against = "450"
Which Tournament has a 2010 of 2r, and a 2011 of 1r?
CREATE TABLE table_name_21 (tournament VARCHAR)
SELECT tournament FROM table_name_21 WHERE 2010 = "2r" AND 2011 = "1r"
Which irrigation district has 4733 users?
CREATE TABLE table_20018310_1 (irrigation_district VARCHAR, users___number_ VARCHAR)
SELECT irrigation_district FROM table_20018310_1 WHERE users___number_ = 4733
Name the most round for michael goulian
CREATE TABLE table_20036882_2 (round INTEGER, winning_pilot VARCHAR)
SELECT MAX(round) FROM table_20036882_2 WHERE winning_pilot = "Michael Goulian"
Who is the owner of Icabad Crane?
CREATE TABLE table_name_53 (owner VARCHAR, horse_name VARCHAR)
SELECT owner FROM table_name_53 WHERE horse_name = "icabad crane"
What is the highest rank for Peter Symes?
CREATE TABLE table_name_64 (rank INTEGER, rider VARCHAR)
SELECT MAX(rank) FROM table_name_64 WHERE rider = "peter symes"
what is the week when the finalist is marcelo ríos?
CREATE TABLE table_name_16 (week VARCHAR, finalist VARCHAR)
SELECT week FROM table_name_16 WHERE finalist = "marcelo ríos"
list in alphabetic order all course names and their instructors' names in year 2008.
CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE teaches (course_id VARCHAR, id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
SELECT T1.title, T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title
What is the result for salmonella spp. if you use citrate?
CREATE TABLE table_16083989_1 (citrate VARCHAR, species VARCHAR)
SELECT COUNT(citrate) FROM table_16083989_1 WHERE species = "Salmonella spp."
What is the sum of points for a position over 5 with more than 2 draws?
CREATE TABLE table_name_79 (points INTEGER, drawn VARCHAR, position VARCHAR)
SELECT SUM(points) FROM table_name_79 WHERE drawn > 2 AND position > 5
What was the final score of the game against opponent Ana Ivanovic?
CREATE TABLE table_name_75 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_75 WHERE opponent_in_the_final = "ana ivanovic"
What is the name of the wrestler with the fewest days held?
CREATE TABLE wrestler (Name VARCHAR, Days_held VARCHAR)
SELECT Name FROM wrestler ORDER BY Days_held LIMIT 1
Name the name for 15 yield
CREATE TABLE table_2189647_1 (name_or_number VARCHAR, yield__megatons_ VARCHAR)
SELECT name_or_number FROM table_2189647_1 WHERE yield__megatons_ = "15"