question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Who is the Winner when the Length is 21.27km?
CREATE TABLE table_name_95 (winner VARCHAR, length VARCHAR)
SELECT winner FROM table_name_95 WHERE length = "21.27km"
What was North Melbourne's score as an away team?
CREATE TABLE table_name_66 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_66 WHERE away_team = "north melbourne"
What is 2004, when 2007 is "A", and when 1997 is "A"?
CREATE TABLE table_name_36 (Id VARCHAR)
SELECT 2004 FROM table_name_36 WHERE 2007 = "a" AND 1997 = "a"
On what date did the person who died on March 23, 1824 leave office?
CREATE TABLE table_name_15 (left_office VARCHAR, death VARCHAR)
SELECT left_office FROM table_name_15 WHERE death = "march 23, 1824"
What is the first and last name of the student participating in the most activities?
CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Participates_in (StuID VARCHAR)
SELECT T1.fname, T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1
What is the Country of the Player with a To par of +1 and a Score of 75-69-73=217?
CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT country FROM table_name_38 WHERE to_par = "+1" AND score = 75 - 69 - 73 = 217
How many times were the winnings $3,816,362?
CREATE TABLE table_1507423_4 (avg_finish VARCHAR, winnings VARCHAR)
SELECT COUNT(avg_finish) FROM table_1507423_4 WHERE winnings = "$3,816,362"
How many positions does rene villemure play?
CREATE TABLE table_1473672_2 (position VARCHAR, player VARCHAR)
SELECT COUNT(position) FROM table_1473672_2 WHERE player = "Rene Villemure"
What is the total number of goals from 24 tries and 96 or greater points?
CREATE TABLE table_name_46 (goals INTEGER, tries VARCHAR, points VARCHAR)
SELECT SUM(goals) FROM table_name_46 WHERE tries = 24 AND points > 96
List the name of all the distinct customers who have orders with status "Packing".
CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Packing"
What were the Results for 25,000 Attendance?
CREATE TABLE table_name_91 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_91 WHERE attendance = "25,000"
Show the lieutenant governor and comptroller from the democratic party.
CREATE TABLE party (Lieutenant_Governor VARCHAR, Comptroller VARCHAR, Party VARCHAR)
SELECT Lieutenant_Governor, Comptroller FROM party WHERE Party = "Democratic"
How many wins were there in 1994?
CREATE TABLE table_name_20 (wins INTEGER, year VARCHAR)
SELECT SUM(wins) FROM table_name_20 WHERE year = 1994
Tell me the player for pick of 145
CREATE TABLE table_name_9 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_9 WHERE pick = "145"
What are the numbers for the item completed earlier than 1904?
CREATE TABLE table_name_13 (numbers VARCHAR, completed INTEGER)
SELECT numbers FROM table_name_13 WHERE completed < 1904
What league has a 10 for round with Paul Cain?
CREATE TABLE table_name_51 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_51 WHERE round = 10 AND player = "paul cain"
What is the platelet count when partial thromboplastin time and bleeding time are unaffected?
CREATE TABLE table_221653_1 (platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)
SELECT platelet_count FROM table_221653_1 WHERE partial_thromboplastin_time = "Unaffected" AND bleeding_time = "Unaffected"
What country did Chris Witty represent?
CREATE TABLE table_name_50 (nation VARCHAR, name VARCHAR)
SELECT nation FROM table_name_50 WHERE name = "chris witty"
List all cities of addresses in alphabetical order.
CREATE TABLE Addresses (city VARCHAR)
SELECT city FROM Addresses ORDER BY city
What is the league that has the pick #160?
CREATE TABLE table_name_36 (league_from VARCHAR, pick__number VARCHAR)
SELECT league_from FROM table_name_36 WHERE pick__number = 160
What is the real name of the movie about love?
CREATE TABLE table_name_26 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT original_name FROM table_name_26 WHERE film_title_used_in_nomination = "love"
What is the rank of Bronco Billy?
CREATE TABLE table_name_21 (rank INTEGER, title VARCHAR)
SELECT AVG(rank) FROM table_name_21 WHERE title = "bronco billy"
what is the tournament when the performance in 2012 is 3r and 2011 is qf?
CREATE TABLE table_name_77 (tournament VARCHAR)
SELECT tournament FROM table_name_77 WHERE 2012 = "3r" AND 2011 = "qf"
Name the high points for mo williams , lebron james , j.j. hickson (6)
CREATE TABLE table_22654073_7 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(high_points) FROM table_22654073_7 WHERE high_rebounds = "Mo Williams , LeBron James , J.J. Hickson (6)"
List the candidates in district Maryland 1 where the republican party won.
CREATE TABLE table_1341453_22 (candidates VARCHAR, party VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341453_22 WHERE party = "Republican" AND district = "Maryland 1"
Jin Hao had what amount of heat?
CREATE TABLE table_name_54 (heat VARCHAR, name VARCHAR)
SELECT heat FROM table_name_54 WHERE name = "jin hao"
What is the skip with a second of Philippe Caux?
CREATE TABLE table_name_30 (skip VARCHAR, second VARCHAR)
SELECT skip FROM table_name_30 WHERE second = "philippe caux"
Which amount of lost had an against of more than 22 and 9 points?
CREATE TABLE table_name_30 (lost VARCHAR, against VARCHAR, points VARCHAR)
SELECT lost FROM table_name_30 WHERE against > 22 AND points = 9
Name the total number of results for octubre
CREATE TABLE table_20963074_1 (result VARCHAR, original_title VARCHAR)
SELECT COUNT(result) FROM table_20963074_1 WHERE original_title = "Octubre"
Which league had a playoffs result of a lost semifinal?
CREATE TABLE table_name_31 (league VARCHAR, playoffs VARCHAR)
SELECT league FROM table_name_31 WHERE playoffs = "lost semifinal"
Which Score has an Opponent of washington capitals, and a Record of 24-34-17?
CREATE TABLE table_name_7 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_7 WHERE opponent = "washington capitals" AND record = "24-34-17"
What was the final round result of Mohammad Reza Samadi?
CREATE TABLE table_name_44 (final VARCHAR, athlete VARCHAR)
SELECT final FROM table_name_44 WHERE athlete = "mohammad reza samadi"
Name the package/option for number being 543
CREATE TABLE table_15887683_8 (package_option VARCHAR, n° VARCHAR)
SELECT package_option FROM table_15887683_8 WHERE n° = 543
What kind of Tongan has a North Marquesan of /haʔe/?
CREATE TABLE table_name_89 (tongan VARCHAR, north_marquesan VARCHAR)
SELECT tongan FROM table_name_89 WHERE north_marquesan = "/haʔe/"
What's the post position when the lengths behind is 0?
CREATE TABLE table_name_74 (post_position INTEGER, lengths_behind VARCHAR)
SELECT AVG(post_position) FROM table_name_74 WHERE lengths_behind = "0"
How many laps did Eddie Irvine have?
CREATE TABLE table_name_73 (laps VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_73 WHERE driver = "eddie irvine"
What country did Bart Bryant with a score of 69-70=139 belong to?
CREATE TABLE table_name_37 (country VARCHAR, player VARCHAR, score VARCHAR)
SELECT country FROM table_name_37 WHERE score = 69 - 70 = 139 AND player = "bart bryant"
Which railway had the earliest build date and a disposal of "Scrapped 1941?"
CREATE TABLE table_name_48 (build_date INTEGER, disposal VARCHAR)
SELECT MIN(build_date) FROM table_name_48 WHERE disposal = "scrapped 1941"
What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?
CREATE TABLE table_name_80 (average INTEGER, team VARCHAR, goals VARCHAR, matches VARCHAR)
SELECT MAX(average) FROM table_name_80 WHERE goals < 34 AND matches > 30 AND team = "cultural leonesa"
Who trained the horse with time of 1:09.40?
CREATE TABLE table_name_24 (trainer VARCHAR, time VARCHAR)
SELECT trainer FROM table_name_24 WHERE time = "1:09.40"
What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4?
CREATE TABLE table_name_52 (bronze VARCHAR, rank VARCHAR, total VARCHAR, nation VARCHAR)
SELECT COUNT(bronze) FROM table_name_52 WHERE total < 3 AND nation = "poland" AND rank > 4
What total number of Overalls has a round that was smaller than 1?
CREATE TABLE table_name_86 (overall VARCHAR, round INTEGER)
SELECT COUNT(overall) FROM table_name_86 WHERE round < 1
What opponent has 32 as the round?
CREATE TABLE table_name_41 (opponent VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_41 WHERE round = "32"
Name who directed season 1
CREATE TABLE table_20704243_5 (directed_by VARCHAR, season__number VARCHAR)
SELECT directed_by FROM table_20704243_5 WHERE season__number = 1
Which venues resulted in a draw?
CREATE TABLE table_name_22 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_22 WHERE result = "draw"
What's the rank of Turkey (TUR) with a total more than 2?
CREATE TABLE table_name_14 (rank VARCHAR, nation VARCHAR, total VARCHAR)
SELECT COUNT(rank) FROM table_name_14 WHERE nation = "turkey (tur)" AND total > 2
What is the sum of points with more than 5 losses and more than 14 played?
CREATE TABLE table_name_67 (points INTEGER, lost VARCHAR, played VARCHAR)
SELECT SUM(points) FROM table_name_67 WHERE lost > 5 AND played > 14
What was the score in the tournament in which Michael Stich took third place?
CREATE TABLE table_name_32 (score VARCHAR, third_place VARCHAR)
SELECT score FROM table_name_32 WHERE third_place = "michael stich"
What is the NBA draft result of the player from Dunbar High School?
CREATE TABLE table_name_61 (nba_draft VARCHAR, school VARCHAR)
SELECT nba_draft FROM table_name_61 WHERE school = "dunbar high school"
What is the time of the Ghantoot Racing and Polo Club?
CREATE TABLE table_name_4 (time VARCHAR, ground VARCHAR)
SELECT time FROM table_name_4 WHERE ground = "ghantoot racing and polo club"
when fairburn is bigger than 54.0, how many years?
CREATE TABLE table_20142629_2 (year VARCHAR, fairburn INTEGER)
SELECT COUNT(year) FROM table_20142629_2 WHERE fairburn > 54.0
Which Attendance has a Result of w 23-21, and a Week smaller than 5?
CREATE TABLE table_name_75 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT AVG(attendance) FROM table_name_75 WHERE result = "w 23-21" AND week < 5
What ranking is the structure with 01.0 87 floors?
CREATE TABLE table_name_51 (rank VARCHAR, floors VARCHAR)
SELECT rank FROM table_name_51 WHERE floors = "01.0 87"
Which owner has a Contemporary Christian music station on 97.9 FM?
CREATE TABLE table_name_45 (name VARCHAR, format VARCHAR, frequency VARCHAR)
SELECT name FROM table_name_45 WHERE format = "contemporary christian music" AND frequency = "97.9 fm"
Which Venue has a Year larger than 1868, and an Opposition of derbyshire?
CREATE TABLE table_name_97 (venue VARCHAR, year VARCHAR, opposition VARCHAR)
SELECT venue FROM table_name_97 WHERE year > 1868 AND opposition = "derbyshire"
What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40?
CREATE TABLE table_name_60 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = "2:41:38.4" AND laps > 40
Which Source model has a Release date of 1992-04-06?
CREATE TABLE table_name_97 (source_model VARCHAR, release_date VARCHAR)
SELECT source_model FROM table_name_97 WHERE release_date = "1992-04-06"
What is the lowest rank with poland as the nationality and a time greater than 55.34?
CREATE TABLE table_name_73 (rank INTEGER, nationality VARCHAR, time VARCHAR)
SELECT MIN(rank) FROM table_name_73 WHERE nationality = "poland" AND time > 55.34
What is the height for club Havk Mladost?
CREATE TABLE table_name_49 (height VARCHAR, club VARCHAR)
SELECT height FROM table_name_49 WHERE club = "havk mladost"
What is the total silver with a Rank larger than 9, and a Total larger than 1?
CREATE TABLE table_name_94 (silver INTEGER, rank VARCHAR, total VARCHAR)
SELECT SUM(silver) FROM table_name_94 WHERE rank > 9 AND total > 1
How many wickets were there when average was 22.66?
CREATE TABLE table_16570286_4 (wickets VARCHAR, average VARCHAR)
SELECT wickets FROM table_16570286_4 WHERE average = "22.66"
Who are the opponents in the February 19, 1996 final?
CREATE TABLE table_name_30 (opponents_in_the_final VARCHAR, date VARCHAR)
SELECT opponents_in_the_final FROM table_name_30 WHERE date = "february 19, 1996"
What was the Overs score of the career played from 1993-2007?
CREATE TABLE table_18914438_1 (overs VARCHAR, career VARCHAR)
SELECT overs FROM table_18914438_1 WHERE career = "1993-2007"
During the Formula One World Championships, which engine was used in 1965?
CREATE TABLE table_name_80 (engine VARCHAR, year VARCHAR)
SELECT engine FROM table_name_80 WHERE year = 1965
What is the Enrollment at Onalaska?
CREATE TABLE table_name_93 (enrollment INTEGER, location VARCHAR)
SELECT MAX(enrollment) FROM table_name_93 WHERE location = "onalaska"
with name meridian condominiums what is number of floors?
CREATE TABLE table_name_19 (floors INTEGER, name VARCHAR)
SELECT AVG(floors) FROM table_name_19 WHERE name = "meridian condominiums"
What's the code of the district with 800.5 people per km2?
CREATE TABLE table_2801442_1 (code VARCHAR, density_in_2011___km²_ VARCHAR)
SELECT code FROM table_2801442_1 WHERE density_in_2011___km²_ = "800.5"
What's the mountains classification of Stage 7 when Kim Kirchen was the general classification?
CREATE TABLE table_name_82 (mountains_classification VARCHAR, general_classification VARCHAR, stage VARCHAR)
SELECT mountains_classification FROM table_name_82 WHERE general_classification = "kim kirchen" AND stage = "7"
What Club/province have caps less than 2 and Jonathan Sexton as player?
CREATE TABLE table_name_74 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
SELECT club_province FROM table_name_74 WHERE caps < 2 AND player = "jonathan sexton"
what is the name of the episode if the production code is 11.12?
CREATE TABLE table_2226817_12 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_2226817_12 WHERE production_code = "11.12"
Name the team for united center 22,147
CREATE TABLE table_22669044_9 (team VARCHAR, location_attendance VARCHAR)
SELECT team FROM table_22669044_9 WHERE location_attendance = "United Center 22,147"
What Catalog released on June 29, 1999 has a Digipak Album Format?
CREATE TABLE table_name_8 (catalog VARCHAR, format VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_8 WHERE format = "digipak album" AND date = "june 29, 1999"
Who was the winner of the race at Belmont?
CREATE TABLE table_1358608_4 (winner_2nd VARCHAR, venue VARCHAR)
SELECT winner_2nd FROM table_1358608_4 WHERE venue = "Belmont"
when was the first elected for districk oklahoma 1?
CREATE TABLE table_1341423_36 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1341423_36 WHERE district = "Oklahoma 1"
How many runs did Vijay Hazare and Gul Mohammad score?
CREATE TABLE table_name_98 (runs VARCHAR, batting_partners VARCHAR)
SELECT runs FROM table_name_98 WHERE batting_partners = "vijay hazare and gul mohammad"
Who was supporting in the round when the gt winning car was dino crescentini?
CREATE TABLE table_28490105_1 (supporting VARCHAR, gt_winning_car VARCHAR)
SELECT supporting FROM table_28490105_1 WHERE gt_winning_car = "Dino Crescentini"
What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5?
CREATE TABLE table_name_92 (rank_in_sp INTEGER, rank_in_fs VARCHAR, final_rank VARCHAR)
SELECT AVG(rank_in_sp) FROM table_name_92 WHERE rank_in_fs > 2 AND final_rank > 5
What was the margin of victory at the Hawaiian Open tournament?
CREATE TABLE table_1514634_2 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT margin_of_victory FROM table_1514634_2 WHERE tournament = "Hawaiian Open"
When ملح هذا البحر is the arabic title what is the english title?
CREATE TABLE table_26555737_1 (english_title VARCHAR, arabic_title VARCHAR)
SELECT english_title FROM table_26555737_1 WHERE arabic_title = "ملح هذا البحر"
What is the RECNet with a Class of B and the City of License of Rouyn-Noranda?
CREATE TABLE table_name_51 (recnet VARCHAR, class VARCHAR, city_of_license VARCHAR)
SELECT recnet FROM table_name_51 WHERE class = "b" AND city_of_license = "rouyn-noranda"
What is the to par of the player with a 68-67-75=210?
CREATE TABLE table_name_99 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_99 WHERE score = 68 - 67 - 75 = 210
Which Lost has Games of 64, and Champs smaller than 0?
CREATE TABLE table_name_99 (lost INTEGER, games VARCHAR, champs VARCHAR)
SELECT AVG(lost) FROM table_name_99 WHERE games = 64 AND champs < 0
What is the location of the venue owned by johnson c. smith university?
CREATE TABLE table_name_26 (location VARCHAR, owner VARCHAR)
SELECT location FROM table_name_26 WHERE owner = "johnson c. smith university"
Which competition was ranked 9?
CREATE TABLE table_name_53 (competition VARCHAR, rank VARCHAR)
SELECT competition FROM table_name_53 WHERE rank = 9
What was the score of the Washington tournament?
CREATE TABLE table_name_20 (score VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_20 WHERE tournament = "washington"
who is the pole position for the rnd 3
CREATE TABLE table_1140085_2 (pole_position VARCHAR, rnd VARCHAR)
SELECT pole_position FROM table_1140085_2 WHERE rnd = 3
Show the name and phone of the customer without any mailshot.
CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR)
SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM mailshot_customers)
What is the result of the game with an attendance greater than 67,702?
CREATE TABLE table_name_71 (result VARCHAR, attendance INTEGER)
SELECT result FROM table_name_71 WHERE attendance > 67 OFFSET 702
What date was the ship named Manhattan completed?
CREATE TABLE table_name_60 (commissioned_or_completed_ VARCHAR, _ VARCHAR, ship VARCHAR)
SELECT commissioned_or_completed_ * _ FROM table_name_60 WHERE ship = "manhattan"
What is the Result with an NFL Recap, played at bank of america stadium?
CREATE TABLE table_name_41 (result VARCHAR, nfl_recap VARCHAR, game_site VARCHAR)
SELECT result FROM table_name_41 WHERE nfl_recap = "recap" AND game_site = "bank of america stadium"
what is the circuit when the date is 4 june?
CREATE TABLE table_name_94 (circuit VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_94 WHERE date = "4 june"
Which network had unknown games and a title of hvem kan slå ylvis hvem kan slå aamodt & kjus?
CREATE TABLE table_name_4 (network VARCHAR, games VARCHAR, title VARCHAR)
SELECT network FROM table_name_4 WHERE games = "unknown" AND title = "hvem kan slå ylvis hvem kan slå aamodt & kjus"
What round was circuit Avus?
CREATE TABLE table_18095719_2 (round INTEGER, circuit VARCHAR)
SELECT MAX(round) FROM table_18095719_2 WHERE circuit = "AVUS"
What is Deutsche Telekom's accreditation type?
CREATE TABLE table_name_88 (accreditation_type VARCHAR, network_brand_name VARCHAR)
SELECT accreditation_type FROM table_name_88 WHERE network_brand_name = "deutsche telekom"
How many public is there for the couple that got eliminated?
CREATE TABLE table_26375386_23 (public INTEGER, result VARCHAR)
SELECT MAX(public) FROM table_26375386_23 WHERE result = "Eliminated"
What is the wards/branches of the fort smith Arkansas stake?
CREATE TABLE table_name_89 (wards__branches_in_arkansas VARCHAR, stake VARCHAR)
SELECT wards__branches_in_arkansas FROM table_name_89 WHERE stake = "fort smith arkansas"
Who were the runner(s)-up when Tiger won by 11 strokes?
CREATE TABLE table_11570261_2 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT runner_s__up FROM table_11570261_2 WHERE margin_of_victory = "11 strokes"
Who was on the Republican ticket for the office of Inspector of state prisons?
CREATE TABLE table_name_8 (republican_ticket VARCHAR, office VARCHAR)
SELECT republican_ticket FROM table_name_8 WHERE office = "inspector of state prisons"
Name the opponent with score of 1–6, 6–4, 6–4
CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_7 WHERE score = "1–6, 6–4, 6–4"
Which branding has the format of southern country?
CREATE TABLE table_19131921_1 (branding VARCHAR, format VARCHAR)
SELECT branding FROM table_19131921_1 WHERE format = "Southern Country"