question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the highest number of wins when more than 17 cuts and more than 25 starts were made, and the top 10 ranking is less than 8?
CREATE TABLE table_name_95 (wins INTEGER, top_10 VARCHAR, cuts_made VARCHAR, starts VARCHAR)
SELECT MAX(wins) FROM table_name_95 WHERE cuts_made > 17 AND starts > 25 AND top_10 < 8
Show the details of the top 3 most expensive hotels.
CREATE TABLE HOTELS (other_hotel_details VARCHAR, price_range VARCHAR)
SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3
Who is the visitor team on 23 November 2007?
CREATE TABLE table_name_98 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_98 WHERE date = "23 november 2007"
What is the total of Game with an Opponent of @ Hartford Whalers and February that's larger than 19?
CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR)
SELECT SUM(game) FROM table_name_49 WHERE opponent = "@ hartford whalers" AND february > 19
In the race involving Billy Lee Evans as the seated Representative, was he elected again?
CREATE TABLE table_1341663_11 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341663_11 WHERE incumbent = "Billy Lee Evans"
What even was Jerry Lynn the inductee?
CREATE TABLE table_name_16 (event VARCHAR, inductee_s_ VARCHAR)
SELECT event FROM table_name_16 WHERE inductee_s_ = "jerry lynn"
What date did Lanny Wadkins (6) win?
CREATE TABLE table_name_12 (date VARCHAR, winner VARCHAR)
SELECT date FROM table_name_12 WHERE winner = "lanny wadkins (6)"
Which class has a city of Richmond, Virginia?
CREATE TABLE table_name_20 (class VARCHAR, city_of_license VARCHAR)
SELECT class FROM table_name_20 WHERE city_of_license = "richmond, virginia"
how many times is young rider more than 0, country is france and points less than 1?
CREATE TABLE table_name_78 (jerseys VARCHAR, points VARCHAR, young_rider VARCHAR, country VARCHAR)
SELECT COUNT(jerseys) FROM table_name_78 WHERE young_rider > 0 AND country = "france" AND points < 1
What's the total of rank number 6 with more than 2 silver?
CREATE TABLE table_name_71 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MAX(total) FROM table_name_71 WHERE rank = "6" AND silver > 2
What is the sum of crowd(s) at princes park?
CREATE TABLE table_name_45 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_45 WHERE venue = "princes park"
What is the affiliation of Davenport University?
CREATE TABLE table_28211213_1 (affiliation VARCHAR, institution VARCHAR)
SELECT affiliation FROM table_28211213_1 WHERE institution = "Davenport University"
Who are all the opponents of Slovakia?
CREATE TABLE table_16741821_9 (opponents VARCHAR, against VARCHAR)
SELECT opponents FROM table_16741821_9 WHERE against = "Slovakia"
Find the number of distinct type of pets.
CREATE TABLE pets (pettype VARCHAR)
SELECT COUNT(DISTINCT pettype) FROM pets
which Score points has a Rank points of 10, and an Event of wc milan?
CREATE TABLE table_name_42 (score_points VARCHAR, rank_points VARCHAR, event VARCHAR)
SELECT score_points FROM table_name_42 WHERE rank_points = "10" AND event = "wc milan"
what is the city when the country is libya and the iata is ben?
CREATE TABLE table_name_57 (city VARCHAR, country VARCHAR, iata VARCHAR)
SELECT city FROM table_name_57 WHERE country = "libya" AND iata = "ben"
What is the speed of model x5560?
CREATE TABLE table_269920_17 (speed__ghz_ VARCHAR, model VARCHAR)
SELECT speed__ghz_ FROM table_269920_17 WHERE model = "X5560"
Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller than 4, and an Airport of shanghai pudong international airport?
CREATE TABLE table_name_66 (total_cargo__metric_tonnes_ INTEGER, rank VARCHAR, airport VARCHAR)
SELECT MAX(total_cargo__metric_tonnes_) FROM table_name_66 WHERE rank < 4 AND airport = "shanghai pudong international airport"
Which Total has Gold smaller than 12, and a Nation of hong kong (hkg)?
CREATE TABLE table_name_43 (total INTEGER, gold VARCHAR, nation VARCHAR)
SELECT MAX(total) FROM table_name_43 WHERE gold < 12 AND nation = "hong kong (hkg)"
What was the score on 24 February 2013?
CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_32 WHERE date = "24 february 2013"
Did Flamengo play in the Recopa Sudamericana in 1998
CREATE TABLE table_14962316_9 (recopa_sudamericana_1998 VARCHAR, team VARCHAR)
SELECT recopa_sudamericana_1998 FROM table_14962316_9 WHERE team = "Flamengo"
What was the position when the affiliation is ldu quito?
CREATE TABLE table_29626583_3 (position VARCHAR, affiliation VARCHAR)
SELECT position FROM table_29626583_3 WHERE affiliation = "LDU Quito"
What is the lowest grid number for Yamaha?
CREATE TABLE table_name_3 (grid INTEGER, manufacturer VARCHAR)
SELECT MIN(grid) FROM table_name_3 WHERE manufacturer = "yamaha"
What publisher created Crysis Warhead?
CREATE TABLE table_name_35 (publisher VARCHAR, title VARCHAR)
SELECT publisher FROM table_name_35 WHERE title = "crysis warhead"
What's the score on April 9?
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_12 WHERE date = "april 9"
When 14.85 kilometers squared is the land area what is the name?
CREATE TABLE table_189598_7 (name VARCHAR, land_area__km²_ VARCHAR)
SELECT name FROM table_189598_7 WHERE land_area__km²_ = "14.85"
Who did the Blue Jays lose to on July 16?
CREATE TABLE table_name_15 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_15 WHERE date = "july 16"
What team(s) had an outgoing manager of joão alves?
CREATE TABLE table_17933600_2 (team VARCHAR, outgoing_manage VARCHAR)
SELECT team FROM table_17933600_2 WHERE outgoing_manage = "João Alves"
How many CLASS P14 trains were made?
CREATE TABLE table_name_2 (quantity_made VARCHAR, class VARCHAR)
SELECT quantity_made FROM table_name_2 WHERE class = "p14"
How many bullet tips colors had other features of a blue band on case base?
CREATE TABLE table_1036189_1 (bullet_tip_color VARCHAR, other_features VARCHAR)
SELECT COUNT(bullet_tip_color) FROM table_1036189_1 WHERE other_features = "Blue band on case base"
With a North Melbourne away team, what is the average crowd?
CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_35 WHERE away_team = "north melbourne"
Which professionals have done at least two types of treatments? List the professional id and cell phone.
CREATE TABLE Professionals (professional_id VARCHAR, cell_number VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)
SELECT T1.professional_id, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2
what is the school that left in 1966?
CREATE TABLE table_name_18 (school VARCHAR, year_left VARCHAR)
SELECT school FROM table_name_18 WHERE year_left = 1966
When 4th, great lakes is the regular season what is the league?
CREATE TABLE table_1939235_1 (league VARCHAR, regular_season VARCHAR)
SELECT league FROM table_1939235_1 WHERE regular_season = "4th, Great Lakes"
What is the catalogue for Harbor Lights as a title?
CREATE TABLE table_name_59 (catalogue VARCHAR, song_title VARCHAR)
SELECT catalogue FROM table_name_59 WHERE song_title = "harbor lights"
Name the away team score for richmond
CREATE TABLE table_14312471_3 (away_team VARCHAR)
SELECT away_team AS score FROM table_14312471_3 WHERE away_team = "Richmond"
How many candidates represent the district of kenneth a. roberts?
CREATE TABLE table_1341897_3 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1341897_3 WHERE incumbent = "Kenneth A. Roberts"
What is the name of the bowl game that was played in Tempe, Arizona?
CREATE TABLE table_16046689_29 (bowl_game VARCHAR, city VARCHAR)
SELECT bowl_game FROM table_16046689_29 WHERE city = "Tempe, Arizona"
Who is in January where April is chris cranston?
CREATE TABLE table_name_71 (january VARCHAR, april VARCHAR)
SELECT january FROM table_name_71 WHERE april = "chris cranston"
Where is every location where Nick is Bru?
CREATE TABLE table_2112260_1 (location VARCHAR, nick VARCHAR)
SELECT location FROM table_2112260_1 WHERE nick = "BRU"
Name the championship for winner and judy tegart dalton lesley turner bowrey
CREATE TABLE table_2009095_2 (championship VARCHAR, outcome VARCHAR, opponents VARCHAR)
SELECT COUNT(championship) FROM table_2009095_2 WHERE outcome = "Winner" AND opponents = "Judy Tegart Dalton Lesley Turner Bowrey"
What is the score points in WC Kerrville, when rank was points of 8?
CREATE TABLE table_name_99 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)
SELECT score_points FROM table_name_99 WHERE event = "wc kerrville" AND rank_points = "8"
What Golden point(s) scorer has the Away Brisbane Broncos and Home South Sydney Rabbitohs?
CREATE TABLE table_name_14 (golden_point_s__scorer VARCHAR, away VARCHAR, home VARCHAR)
SELECT golden_point_s__scorer FROM table_name_14 WHERE away = "brisbane broncos" AND home = "south sydney rabbitohs"
What team hosted at Tampa Stadium?
CREATE TABLE table_name_75 (host_team VARCHAR, stadium VARCHAR)
SELECT host_team FROM table_name_75 WHERE stadium = "tampa stadium"
What is the Record of the Game after 40 with New York Rangers as Opponent?
CREATE TABLE table_name_5 (record VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_5 WHERE game > 40 AND opponent = "new york rangers"
What is the number of nicknames for the meaning of god knows my journey.
CREATE TABLE table_11908801_1 (nickname VARCHAR, meaning VARCHAR)
SELECT COUNT(nickname) FROM table_11908801_1 WHERE meaning = "God Knows My Journey"
Method of submission (chin in the eye) had what opponent?
CREATE TABLE table_name_93 (opponent VARCHAR, method VARCHAR)
SELECT opponent FROM table_name_93 WHERE method = "submission (chin in the eye)"
When the tie no was 1, what was the score?
CREATE TABLE table_name_44 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_44 WHERE tie_no = "1"
Show the locations of schools that have more than 1 player.
CREATE TABLE player (School_ID VARCHAR); CREATE TABLE school (Location VARCHAR, School_ID VARCHAR)
SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1
What's the date released when there was 9.7% of Green communist?
CREATE TABLE table_name_53 (date_released VARCHAR, green_communist VARCHAR)
SELECT date_released FROM table_name_53 WHERE green_communist = "9.7%"
Which attendance has a Score of 3-5?
CREATE TABLE table_name_88 (attendance VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_88 WHERE score = "3-5"
What was the score with the team record was 15-25?
CREATE TABLE table_23285805_6 (score VARCHAR, record VARCHAR)
SELECT score FROM table_23285805_6 WHERE record = "15-25"
Show different locations of railways along with the corresponding number of railways at each location.
CREATE TABLE railway (LOCATION VARCHAR)
SELECT LOCATION, COUNT(*) FROM railway GROUP BY LOCATION
What is home ground for coach Andrej Lemanis?
CREATE TABLE table_name_68 (home_ground VARCHAR, coach VARCHAR)
SELECT home_ground FROM table_name_68 WHERE coach = "andrej lemanis"
How many times was pernell whitaker an opponent?
CREATE TABLE table_12206918_2 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(date) FROM table_12206918_2 WHERE opponent = "Pernell Whitaker"
Show the names of conductors that have conducted more than one orchestras.
CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1
How many touchdowns were the when there was more than 1.0 extra point?
CREATE TABLE table_25730123_2 (touchdowns VARCHAR, extra_points INTEGER)
SELECT touchdowns FROM table_25730123_2 WHERE extra_points > 1.0
Which Grand Prix has the Circuit of Lille?
CREATE TABLE table_name_20 (name VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_20 WHERE circuit = "lille"
What is the km2 area for the population of 311?
CREATE TABLE table_name_46 (area__km_2__ INTEGER, population VARCHAR)
SELECT AVG(area__km_2__) FROM table_name_46 WHERE population = 311
When was the Little Tavern completed?
CREATE TABLE table_name_55 (date_completed VARCHAR, nickname VARCHAR)
SELECT date_completed FROM table_name_55 WHERE nickname = "little tavern"
How many rounds have john o'day as the name, and a pick less than 3?
CREATE TABLE table_name_87 (round INTEGER, name VARCHAR, pick VARCHAR)
SELECT SUM(round) FROM table_name_87 WHERE name = "john o'day" AND pick < 3
When did the team play an away game against the Toronto Eagles?
CREATE TABLE table_name_39 (date VARCHAR, away VARCHAR)
SELECT date FROM table_name_39 WHERE away = "toronto eagles"
When North Melbourne played as the away team, what was the crowd numbers?
CREATE TABLE table_name_56 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_56 WHERE away_team = "north melbourne"
What is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)?
CREATE TABLE table_name_76 (attendance VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
SELECT COUNT(attendance) FROM table_name_76 WHERE visitor = "charlotte" AND leading_scorer = "ricky davis (23)"
What i the total number of championships less than 2, and a league cup larger than 1?
CREATE TABLE table_name_9 (total VARCHAR, championship VARCHAR, league_cup VARCHAR)
SELECT COUNT(total) FROM table_name_9 WHERE championship < 2 AND league_cup > 1
What is the minimum number of cuts made for Hunter Mahan?
CREATE TABLE table_24747844_2 (cuts_made INTEGER, player VARCHAR)
SELECT MIN(cuts_made) FROM table_24747844_2 WHERE player = "Hunter Mahan"
Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?
CREATE TABLE table_name_58 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR)
SELECT railway FROM table_name_58 WHERE location = "shildon" AND objectnumber = "1975-7022"
Show the names of students who have at least 2 likes.
CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)
SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2
What is the least amount of silver for Italy with a total less than 5?
CREATE TABLE table_name_83 (silver INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(silver) FROM table_name_83 WHERE nation = "italy" AND total < 5
Who made the decision when atlanta was the home team?
CREATE TABLE table_name_33 (decision VARCHAR, home VARCHAR)
SELECT decision FROM table_name_33 WHERE home = "atlanta"
What is the chapter for Illinois Wesleyan?
CREATE TABLE table_21821014_1 (chapter VARCHAR, institution VARCHAR)
SELECT chapter FROM table_21821014_1 WHERE institution = "Illinois Wesleyan"
What is Away, when Home is Guelph Gargoyles?
CREATE TABLE table_name_24 (away VARCHAR, home VARCHAR)
SELECT away FROM table_name_24 WHERE home = "guelph gargoyles"
What was the aveg/g for the qb with the Att-Cmp-Int of 117–215–6?
CREATE TABLE table_name_47 (avg_g VARCHAR, att_cmp_int VARCHAR)
SELECT COUNT(avg_g) FROM table_name_47 WHERE att_cmp_int = "117–215–6"
What is the EASA (EU) when the notes show aoc 135?
CREATE TABLE table_name_76 (easa__eu_ VARCHAR, notes VARCHAR)
SELECT easa__eu_ FROM table_name_76 WHERE notes = "aoc 135"
Which rank is above floor 47?
CREATE TABLE table_name_83 (rank VARCHAR, floors INTEGER)
SELECT rank FROM table_name_83 WHERE floors > 47
What was the name of the competition that took place on may 31, 2008?
CREATE TABLE table_name_14 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_14 WHERE date = "may 31, 2008"
Name the college/junior club team for jimmy jones
CREATE TABLE table_1965650_2 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_1965650_2 WHERE player = "Jimmy Jones"
Which loss has an Attendance of 23,952?
CREATE TABLE table_name_55 (loss VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_55 WHERE attendance = "23,952"
How many draws have less than 8 wins, and 31 goals for?
CREATE TABLE table_name_25 (draws INTEGER, wins VARCHAR, goals_for VARCHAR)
SELECT SUM(draws) FROM table_name_25 WHERE wins < 8 AND goals_for = 31
Who had the high rebounds on January 24?
CREATE TABLE table_name_68 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_68 WHERE date = "january 24"
What regular season had a record of 16-12?
CREATE TABLE table_name_7 (reg_season VARCHAR, record VARCHAR)
SELECT reg_season FROM table_name_7 WHERE record = "16-12"
Find the category descriptions of the products whose descriptions include letter 't'.
CREATE TABLE ref_product_categories (product_category_description VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_description VARCHAR)
SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%'
For which group was Kim nominated in 2010 for Best International Actress?
CREATE TABLE table_name_61 (group VARCHAR, year VARCHAR, award VARCHAR)
SELECT group FROM table_name_61 WHERE year = 2010 AND award = "best international actress"
What is the highest goal difference of the club with more than 34 played?
CREATE TABLE table_name_54 (goal_difference INTEGER, played INTEGER)
SELECT MAX(goal_difference) FROM table_name_54 WHERE played > 34
What is the earliest year a red maple had a mintage over 15,000?
CREATE TABLE table_name_48 (year INTEGER, theme VARCHAR, mintage VARCHAR)
SELECT MIN(year) FROM table_name_48 WHERE theme = "red maple" AND mintage > 15 OFFSET 000
What are the Poles for Season 2006
CREATE TABLE table_name_91 (poles VARCHAR, season VARCHAR)
SELECT poles FROM table_name_91 WHERE season = 2006
WHAT IS THE TOTAL, OF A TO PAR FOR HUBERT GREEN, AND A TOTAL LARGER THAN 291?
CREATE TABLE table_name_96 (to_par VARCHAR, player VARCHAR, total VARCHAR)
SELECT COUNT(to_par) FROM table_name_96 WHERE player = "hubert green" AND total > 291
What is thurs 26 aug when wed 25 aug is 19' 59.98 113.192mph?
CREATE TABLE table_26986076_2 (thurs_26_aug VARCHAR, wed_25_aug VARCHAR)
SELECT thurs_26_aug FROM table_26986076_2 WHERE wed_25_aug = "19' 59.98 113.192mph"
What is the birth date for Mervyn Dillon?
CREATE TABLE table_name_11 (date_of_birth VARCHAR, player VARCHAR)
SELECT date_of_birth FROM table_name_11 WHERE player = "mervyn dillon"
How many results are there with the theme Group Round?
CREATE TABLE table_26250253_1 (result VARCHAR, theme VARCHAR)
SELECT COUNT(result) FROM table_26250253_1 WHERE theme = "Group Round"
What opponent uses the method of decision and a 5-3 record?
CREATE TABLE table_name_75 (opponent VARCHAR, method VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_75 WHERE method = "decision" AND record = "5-3"
Who made high points on games of score w 106–104 (ot)
CREATE TABLE table_17340355_6 (high_assists VARCHAR, score VARCHAR)
SELECT high_assists FROM table_17340355_6 WHERE score = "W 106–104 (OT)"
On which dates played Home Captain Courtney Walsh at the Queen's Park Oval?
CREATE TABLE table_name_35 (date VARCHAR, home_captain VARCHAR, venue VARCHAR)
SELECT date FROM table_name_35 WHERE home_captain = "courtney walsh" AND venue = "queen's park oval"
Which Position has a School/Club Team of illinois?
CREATE TABLE table_name_89 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_89 WHERE school_club_team = "illinois"
What is the Absorbtion (in nanometers) of the color Violet with an emission of 432 nm?
CREATE TABLE table_name_59 (absorb__nm_ VARCHAR, color VARCHAR, emit__nm_ VARCHAR)
SELECT absorb__nm_ FROM table_name_59 WHERE color = "violet" AND emit__nm_ = "432"
What is the status where the notes are possible jr synonym of sapeornis?
CREATE TABLE table_name_60 (status VARCHAR, notes VARCHAR)
SELECT status FROM table_name_60 WHERE notes = "possible jr synonym of sapeornis"
Which units are commanded by Lieutenant Colonel Francis Hepburn?
CREATE TABLE table_11793221_2 (unit VARCHAR, commander VARCHAR)
SELECT unit FROM table_11793221_2 WHERE commander = "Lieutenant Colonel Francis Hepburn"
What record has February 25 as the date?
CREATE TABLE table_name_7 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_7 WHERE date = "february 25"
Which High rebounds has a High points of douglas (23)?
CREATE TABLE table_name_23 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT high_rebounds FROM table_name_23 WHERE high_points = "douglas (23)"
How many years was the chassis a Coloni C3?
CREATE TABLE table_name_51 (year VARCHAR, chassis VARCHAR)
SELECT COUNT(year) FROM table_name_51 WHERE chassis = "coloni c3"