question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Position has a Player of gino pisellini?
CREATE TABLE table_name_13 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_13 WHERE player = "gino pisellini"
Which award has film lyricist in the category?
CREATE TABLE table_name_11 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_11 WHERE category = "film lyricist"
What circuit had 16 rounds?
CREATE TABLE table_name_79 (circuit VARCHAR, round VARCHAR)
SELECT circuit FROM table_name_79 WHERE round = 16
Name the most points for independiente
CREATE TABLE table_16940409_1 (points INTEGER, team VARCHAR)
SELECT MAX(points) FROM table_16940409_1 WHERE team = "Independiente"
Which character was nominated in the 2010 Indian Television Academy Awards?
CREATE TABLE table_name_1 (character VARCHAR, year VARCHAR, award_ceremony VARCHAR)
SELECT character FROM table_name_1 WHERE year = 2010 AND award_ceremony = "indian television academy awards"
How many people directed episode 7 In the season?
CREATE TABLE table_23937219_3 (directed_by VARCHAR, season__number VARCHAR)
SELECT COUNT(directed_by) FROM table_23937219_3 WHERE season__number = 7
What year was Stephen Pace elected?
CREATE TABLE table_1342256_11 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1342256_11 WHERE incumbent = "Stephen Pace"
What is the average wickets that have overs greater than 44, danish kaneria as the player, with an average greater than 13.8?
CREATE TABLE table_name_24 (wickets INTEGER, average VARCHAR, overs VARCHAR, player VARCHAR)
SELECT AVG(wickets) FROM table_name_24 WHERE overs > 44 AND player = "danish kaneria" AND average > 13.8
What are the directions for the guardian whose graha (planet) is bṛhaspati (Jupiter)?
CREATE TABLE table_100518_1 (direction VARCHAR, graha__planet_ VARCHAR)
SELECT direction FROM table_100518_1 WHERE graha__planet_ = "Bṛhaspati (Jupiter)"
Tell me the fastest lapf or jim clark being the winning driver for prince george
CREATE TABLE table_name_35 (fastest_lap VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT fastest_lap FROM table_name_35 WHERE winning_driver = "jim clark" AND circuit = "prince george"
What's the version of the 1.0.12 release?
CREATE TABLE table_28540539_2 (version VARCHAR, release VARCHAR)
SELECT version FROM table_28540539_2 WHERE release = "1.0.12"
What day did philadelphia visit?
CREATE TABLE table_name_31 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_31 WHERE visitor = "philadelphia"
How old was the person born 24 September 1851 at the time of disaster?
CREATE TABLE table_name_81 (age_at_time_of_disaster VARCHAR, date_of_birth VARCHAR)
SELECT age_at_time_of_disaster FROM table_name_81 WHERE date_of_birth = "24 september 1851"
What is the T8 Place Player with a Score of 68-74=142?
CREATE TABLE table_name_67 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_67 WHERE place = "t8" AND score = 68 - 74 = 142
List countries that have more than one swimmer.
CREATE TABLE swimmer (nationality VARCHAR)
SELECT nationality, COUNT(*) FROM swimmer GROUP BY nationality HAVING COUNT(*) > 1
What is the total of port adelaide
CREATE TABLE table_1161065_27 (total INTEGER, team VARCHAR)
SELECT MAX(total) FROM table_1161065_27 WHERE team = "Port Adelaide"
Which model number has an order part number of TMDML44BKX5LD?
CREATE TABLE table_name_32 (model_number VARCHAR, order_part_number VARCHAR)
SELECT model_number FROM table_name_32 WHERE order_part_number = "tmdml44bkx5ld"
What is the Home on december 10?
CREATE TABLE table_name_33 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_33 WHERE date = "december 10"
When did the staff member with first name as Janessa and last name as Sawayn join the company?
CREATE TABLE Staff (date_joined_staff VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT date_joined_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
What did the away team score when they visited south melbourne?
CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_26 WHERE home_team = "south melbourne"
After 1989, what was the score of the Grand Prix Passing Shot where the Runners-up were Jeff Tarango?
CREATE TABLE table_name_65 (score VARCHAR, runners_up VARCHAR, year VARCHAR, tournament_name VARCHAR)
SELECT score FROM table_name_65 WHERE year > 1989 AND tournament_name = "grand prix passing shot" AND runners_up = "jeff tarango"
What was the final round score for the player from the Milwaukee Bucks?
CREATE TABLE table_name_31 (final_round VARCHAR, team VARCHAR)
SELECT final_round FROM table_name_31 WHERE team = "milwaukee bucks"
What race even has NASCAR Featherlite Modified Series as the championship?
CREATE TABLE table_name_26 (event VARCHAR, championship VARCHAR)
SELECT event FROM table_name_26 WHERE championship = "nascar featherlite modified series"
How many points categories are there when the losing bonus is 2 and points for are 642?
CREATE TABLE table_17625749_3 (points VARCHAR, losing_bonus VARCHAR, points_for VARCHAR)
SELECT COUNT(points) FROM table_17625749_3 WHERE losing_bonus = "2" AND points_for = "642"
Name the location attendance for 10-14
CREATE TABLE table_23248940_7 (location_attendance VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_23248940_7 WHERE record = "10-14"
Who was the opponent at the game at Sullivan Stadium before week 11?
CREATE TABLE table_name_30 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT opponent FROM table_name_30 WHERE week < 11 AND game_site = "sullivan stadium"
When was the incumbent first elected in the district where the result was a democratic-republican gain?
CREATE TABLE table_2668401_17 (first_elected VARCHAR, result VARCHAR)
SELECT first_elected FROM table_2668401_17 WHERE result = "Democratic-Republican gain"
What Network has Punjabi as the Language?
CREATE TABLE table_name_71 (network VARCHAR, language VARCHAR)
SELECT network FROM table_name_71 WHERE language = "punjabi"
What is the maximum download speed for the Internet premium 3G plan?
CREATE TABLE table_name_5 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR)
SELECT maximum_download_speed__kbps FROM table_name_5 WHERE technology = "3g" AND plan_name = "internet premium"
What are the lengths hosted by Pocono International Raceway?
CREATE TABLE table_22669816_1 (length VARCHAR, track VARCHAR)
SELECT length FROM table_22669816_1 WHERE track = "Pocono International Raceway"
Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?
CREATE TABLE table_name_51 (eruptions VARCHAR, country VARCHAR, location VARCHAR, volcanic_explosivity_index VARCHAR)
SELECT eruptions FROM table_name_51 WHERE location = "pacific ring of fire" AND volcanic_explosivity_index = "6" AND country = "peru"
What is the End Source from the Hartlepool United Loan Club?
CREATE TABLE table_name_51 (end_source VARCHAR, loan_club VARCHAR)
SELECT end_source FROM table_name_51 WHERE loan_club = "hartlepool united"
What are the first and last name for those employees who works either in department 70 or 90?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, department_id VARCHAR)
SELECT first_name, last_name FROM employees WHERE department_id = 70 OR department_id = 90
what is 2005 when 2003 is A, 2007 is 2r and 2012 is 3r?
CREATE TABLE table_name_49 (Id VARCHAR)
SELECT 2005 FROM table_name_49 WHERE 2003 = "a" AND 2007 = "2r" AND 2012 = "3r"
How many silver medals did Estonia, which won more than 1 gold and less than 97 medals total, win?
CREATE TABLE table_name_20 (silver VARCHAR, nation VARCHAR, gold VARCHAR, total VARCHAR)
SELECT silver FROM table_name_20 WHERE gold > 1 AND total < 97 AND nation = "estonia"
What is the average year for a merzario a2 chassis?
CREATE TABLE table_name_91 (year INTEGER, chassis VARCHAR)
SELECT AVG(year) FROM table_name_91 WHERE chassis = "merzario a2"
Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?
CREATE TABLE table_name_65 (opponent VARCHAR, date VARCHAR, type VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_65 WHERE type = "ud" AND round = "10" AND date = "2008-06-11"
Who is the winner with an elapsed time of 12 h 42 min?
CREATE TABLE table_22050544_1 (winner VARCHAR, elapsed_time VARCHAR)
SELECT winner FROM table_22050544_1 WHERE elapsed_time = "12 h 42 min"
What is the Thai name for the word abbreviated มี.ค.?
CREATE TABLE table_name_75 (thai_name VARCHAR, abbr VARCHAR)
SELECT thai_name FROM table_name_75 WHERE abbr = "มี.ค."
What was the title of the episode that aired on October 7, 1965?
CREATE TABLE table_25046766_3 (title VARCHAR, original_airdate_uk VARCHAR)
SELECT title FROM table_25046766_3 WHERE original_airdate_uk = "October 7, 1965"
What was the original nonequity tour when the original broadway was Kevin Chamberlin?
CREATE TABLE table_name_49 (original_nonequity_tour_cast VARCHAR, original_broadway_cast VARCHAR)
SELECT original_nonequity_tour_cast FROM table_name_49 WHERE original_broadway_cast = "kevin chamberlin"
What is the Date, when the Team Record is 2-0?
CREATE TABLE table_name_3 (date VARCHAR, team_record VARCHAR)
SELECT date FROM table_name_3 WHERE team_record = "2-0"
For directors who had more than one movie, return the titles and produced years of all movies directed by them.
CREATE TABLE Movie (director VARCHAR, title VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, director VARCHAR)
SELECT T1.title, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title
In what Years was the Player in MF Position?
CREATE TABLE table_name_71 (years VARCHAR, position VARCHAR)
SELECT years FROM table_name_71 WHERE position = "mf"
What is the fewest number of 2005 subscribers for Vodafone?
CREATE TABLE table_29395291_2 (subscribers__2005___thousands_ INTEGER, provider VARCHAR)
SELECT MIN(subscribers__2005___thousands_) FROM table_29395291_2 WHERE provider = "Vodafone"
Where did Geelong play a home game?
CREATE TABLE table_name_74 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_74 WHERE home_team = "geelong"
Name the lowest year for 12th position
CREATE TABLE table_name_4 (year INTEGER, position VARCHAR)
SELECT MIN(year) FROM table_name_4 WHERE position = "12th"
what is the average enrollment when the team nickname is wolverines and founded is after 1817?
CREATE TABLE table_name_55 (enrollment INTEGER, team_nickname VARCHAR, founded VARCHAR)
SELECT AVG(enrollment) FROM table_name_55 WHERE team_nickname = "wolverines" AND founded > 1817
What are the template ids with template type description "Presentation".
CREATE TABLE Templates (template_id VARCHAR, template_type_code VARCHAR); CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR)
SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = "Presentation"
In the year 2009 who was the under-13?
CREATE TABLE table_26368963_1 (under_13 VARCHAR, year VARCHAR)
SELECT under_13 FROM table_26368963_1 WHERE year = 2009
Harry l Stephen rides a Norton machine on what date?
CREATE TABLE table_name_56 (date VARCHAR, machine VARCHAR, rider VARCHAR)
SELECT date FROM table_name_56 WHERE machine = "norton" AND rider = "harry l stephen"
List the production code for the episode had 5.55 million viewers?
CREATE TABLE table_2501754_3 (prod_code VARCHAR, viewing_figures_millions VARCHAR)
SELECT prod_code FROM table_2501754_3 WHERE viewing_figures_millions = "5.55"
When the Flap is less than 15 and the podium is larger than 11, what is the pole?
CREATE TABLE table_name_95 (pole VARCHAR, flap VARCHAR, podium VARCHAR)
SELECT pole FROM table_name_95 WHERE flap < 15 AND podium > 11
Who won the event with a top prize of $2,434,061?
CREATE TABLE table_name_28 (name VARCHAR, prize VARCHAR)
SELECT name FROM table_name_28 WHERE prize = "$2,434,061"
Which Other has a Green of 0, and an Independent of 1, and a Labour smaller than 45, and a Control of labour lose to no overall control?
CREATE TABLE table_name_90 (other VARCHAR, control VARCHAR, labour VARCHAR, green VARCHAR, independent VARCHAR)
SELECT other FROM table_name_90 WHERE green = 0 AND independent = 1 AND labour < 45 AND control = "labour lose to no overall control"
What is the sum of heat for christophe lebon when lane is less than 4?
CREATE TABLE table_name_74 (heat VARCHAR, lane VARCHAR, name VARCHAR)
SELECT COUNT(heat) FROM table_name_74 WHERE lane < 4 AND name = "christophe lebon"
What is the home team's score when st kilda is away?
CREATE TABLE table_name_23 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_23 WHERE away_team = "st kilda"
What is the trans 2 duration if the biking stage is covered within 58:20?
CREATE TABLE table_17085947_32 (trans_2 VARCHAR, bike__40km_ VARCHAR)
SELECT trans_2 FROM table_17085947_32 WHERE bike__40km_ = "58:20"
Which Date has a Result of w 13–6?
CREATE TABLE table_name_84 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_84 WHERE result = "w 13–6"
Name the average Stolen Ends which has an Ends Lost smaller than 35?
CREATE TABLE table_name_89 (stolen_ends INTEGER, ends_lost INTEGER)
SELECT AVG(stolen_ends) FROM table_name_89 WHERE ends_lost < 35
When was the Super B capacity reached when the number of truck loads north was 7735?
CREATE TABLE table_12791809_1 (super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR, number_of_truck_loads_north VARCHAR)
SELECT super_b_capacity_reached_[_citation_needed_] FROM table_12791809_1 WHERE number_of_truck_loads_north = 7735
What was the time of the NJKF Titans Neo X event?
CREATE TABLE table_name_83 (time VARCHAR, event VARCHAR)
SELECT time FROM table_name_83 WHERE event = "njkf titans neo x"
On what date was god & guns released?
CREATE TABLE table_name_15 (date_of_release VARCHAR, title VARCHAR)
SELECT date_of_release FROM table_name_15 WHERE title = "god & guns"
Which engine type was used in the model 2.3 v5?
CREATE TABLE table_name_45 (engine_type VARCHAR, model VARCHAR)
SELECT engine_type FROM table_name_45 WHERE model = "2.3 v5"
Which person has a bodyweight of 73.6?
CREATE TABLE table_name_15 (name VARCHAR, bodyweight VARCHAR)
SELECT name FROM table_name_15 WHERE bodyweight = 73.6
What is the earliest season that Pisico Bình ðinh is team 2?
CREATE TABLE table_name_95 (season INTEGER, team_2 VARCHAR)
SELECT MIN(season) FROM table_name_95 WHERE team_2 = "pisico bình ðinh"
Who is North Melbourne's home team?
CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_30 WHERE away_team = "north melbourne"
What races have gp2 series, 0 F.L. and a 17th position?
CREATE TABLE table_name_43 (races VARCHAR, position VARCHAR, series VARCHAR, fl VARCHAR)
SELECT races FROM table_name_43 WHERE series = "gp2 series" AND fl = "0" AND position = "17th"
What is the total number of Total with more than 16 rank for the nation of Romania with more than 0 for silver?
CREATE TABLE table_name_36 (total VARCHAR, silver VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT COUNT(total) FROM table_name_36 WHERE rank > 16 AND nation = "romania" AND silver > 0
Who constructed the car that has a Time/Retired of engine, and over 50 laps?
CREATE TABLE table_name_56 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_56 WHERE time_retired = "engine" AND laps > 50
What is the most silver won by Norway?
CREATE TABLE table_name_76 (silver INTEGER, nation VARCHAR)
SELECT MAX(silver) FROM table_name_76 WHERE nation = "norway"
Name the date successor seated is south carolina 3rd
CREATE TABLE table_224837_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT date_successor_seated FROM table_224837_4 WHERE district = "South Carolina 3rd"
what report was in geelong
CREATE TABLE table_name_48 (report VARCHAR, home_team VARCHAR)
SELECT report FROM table_name_48 WHERE home_team = "geelong"
What is Rinnal's title?
CREATE TABLE table_name_82 (title VARCHAR, name VARCHAR)
SELECT title FROM table_name_82 WHERE name = "rinnal"
What's the highest season number of an episode in the series?
CREATE TABLE table_10718192_2 (no_in_season INTEGER)
SELECT MAX(no_in_season) FROM table_10718192_2
What is the july average low associated with a january average high of 30.4?
CREATE TABLE table_name_28 (july__avg_low_ VARCHAR, january__avg_high_°f_ VARCHAR)
SELECT COUNT(july__avg_low_) AS °f_ FROM table_name_28 WHERE january__avg_high_°f_ = "30.4"
What comments are made in 1875?
CREATE TABLE table_name_64 (comments VARCHAR, year_made VARCHAR)
SELECT comments FROM table_name_64 WHERE year_made = "1875"
What Country with a MC Format has a ATCO Records Label?
CREATE TABLE table_name_98 (country VARCHAR, label VARCHAR, format VARCHAR)
SELECT country FROM table_name_98 WHERE label = "atco records" AND format = "mc"
If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term?
CREATE TABLE table_25182437_1 (end_date_of__final__term VARCHAR, prime_minister VARCHAR)
SELECT end_date_of__final__term FROM table_25182437_1 WHERE prime_minister = "Palmer, Geoffrey Geoffrey Palmer"
What is the Score of the game with the New York Rangers Home team with a Record of 8–27–5?
CREATE TABLE table_name_48 (score VARCHAR, home VARCHAR, record VARCHAR)
SELECT score FROM table_name_48 WHERE home = "new york rangers" AND record = "8–27–5"
The frequency 89.3 belongs to what class?
CREATE TABLE table_name_79 (class VARCHAR, frequency_mhz VARCHAR)
SELECT class FROM table_name_79 WHERE frequency_mhz = 89.3
Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320?
CREATE TABLE table_name_58 (rank VARCHAR, matches VARCHAR, goals VARCHAR)
SELECT COUNT(rank) FROM table_name_58 WHERE matches = "427" AND goals < 320
What is the highest number of games won where less than 21 games were conceded and less than 18 games were actually played?
CREATE TABLE table_name_85 (won__pg_ INTEGER, goals_conceded__gc_ VARCHAR, played__pj_ VARCHAR)
SELECT MAX(won__pg_) FROM table_name_85 WHERE goals_conceded__gc_ < 21 AND played__pj_ < 18
Which allergy type has least number of allergies?
CREATE TABLE Allergy_type (allergytype VARCHAR)
SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY COUNT(*) LIMIT 1
What brand is the RW-2100 model?
CREATE TABLE table_name_95 (brand VARCHAR, model VARCHAR)
SELECT brand FROM table_name_95 WHERE model = "rw-2100"
who is the the incumbent with opponent being anthony weiner (d) unopposed
CREATE TABLE table_13833770_3 (incumbent VARCHAR, opponent VARCHAR)
SELECT incumbent FROM table_13833770_3 WHERE opponent = "Anthony Weiner (D) unopposed"
What is the result of the game on week 11?
CREATE TABLE table_name_52 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_52 WHERE week = 11
What is the Week number on November 30, 1958 with more than 33,240 in Attendance?
CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_64 WHERE date = "november 30, 1958" AND attendance > 33 OFFSET 240
What are the mascots for schools with enrollments above the average?
CREATE TABLE school (mascot VARCHAR, enrollment INTEGER)
SELECT mascot FROM school WHERE enrollment > (SELECT AVG(enrollment) FROM school)
How many losses does corinthians have when they scored over 22 points?
CREATE TABLE table_name_21 (lost VARCHAR, team VARCHAR, points VARCHAR)
SELECT COUNT(lost) FROM table_name_21 WHERE team = "corinthians" AND points > 22
What is the title of the series # 8?
CREATE TABLE table_27720737_1 (title VARCHAR, series__number VARCHAR)
SELECT title FROM table_27720737_1 WHERE series__number = 8
Who was the driver with chassis 625 553 500?
CREATE TABLE table_name_72 (driver VARCHAR, chassis VARCHAR)
SELECT driver FROM table_name_72 WHERE chassis = "625 553 500"
I wan the date of vacancy for departure of resigned and outgoing manager of gordon wylde
CREATE TABLE table_name_22 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT date_of_vacancy FROM table_name_22 WHERE manner_of_departure = "resigned" AND outgoing_manager = "gordon wylde"
Who starred in episode 3?
CREATE TABLE table_24212608_1 (starring VARCHAR, episode VARCHAR)
SELECT starring FROM table_24212608_1 WHERE episode = 3
How many prefectures have an area of 361.719 kilometers squared?
CREATE TABLE table_221398_1 (prefecture VARCHAR, area__km²_ VARCHAR)
SELECT COUNT(prefecture) FROM table_221398_1 WHERE area__km²_ = "361.719"
How many news stations opened on the date of June 24, 2000?
CREATE TABLE table_1817879_2 (_number_of_new_stations VARCHAR, date_opened VARCHAR)
SELECT _number_of_new_stations FROM table_1817879_2 WHERE date_opened = "June 24, 2000"
What was the competition when the opponent was the Randers?
CREATE TABLE table_name_8 (competition VARCHAR, opponent VARCHAR)
SELECT competition FROM table_name_8 WHERE opponent = "randers"
Who were the candidates in the district of South Carolina 5?
CREATE TABLE table_1346137_4 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1346137_4 WHERE district = "South Carolina 5"
What was the position of the player from Pacific Lutheran University named Greg Fredlund in years after 2010?
CREATE TABLE table_name_54 (position VARCHAR, year VARCHAR, school VARCHAR, player VARCHAR)
SELECT position FROM table_name_54 WHERE school = "pacific lutheran university" AND player = "greg fredlund" AND year > 2010
What is Central Michigan's average overall when the pick was 8?
CREATE TABLE table_name_83 (overall INTEGER, college VARCHAR, pick VARCHAR)
SELECT AVG(overall) FROM table_name_83 WHERE college = "central michigan" AND pick = 8