question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the lowest total for Italy when the latest win is 1950?
CREATE TABLE table_name_43 (total INTEGER, nationality VARCHAR, latest_win VARCHAR)
SELECT MIN(total) FROM table_name_43 WHERE nationality = "italy" AND latest_win = 1950
Name trofeo fast team with young rider classification of francesco casagrande and stage of 10
CREATE TABLE table_name_55 (trofeo_fast_team VARCHAR, young_rider_classification VARCHAR, stage VARCHAR)
SELECT trofeo_fast_team FROM table_name_55 WHERE young_rider_classification = "francesco casagrande" AND stage = "10"
What are the original air date(s) for episodes with production code ipea345a?
CREATE TABLE table_2501754_2 (original_airdate VARCHAR, prod_code VARCHAR)
SELECT original_airdate FROM table_2501754_2 WHERE prod_code = "IPEA345A"
What is the rank of The Big Doll House?
CREATE TABLE table_name_62 (rank INTEGER, title VARCHAR)
SELECT MIN(rank) FROM table_name_62 WHERE title = "the big doll house"
Name the BUSHI when it has kenny omega of yang (7:27)
CREATE TABLE table_name_45 (bushi VARCHAR, kenny_omega VARCHAR)
SELECT bushi FROM table_name_45 WHERE kenny_omega = "yang (7:27)"
How many times did he hold 12 poles?
CREATE TABLE table_26400438_1 (f_laps VARCHAR, poles VARCHAR)
SELECT COUNT(f_laps) FROM table_26400438_1 WHERE poles = 12
Name the election for the percent of popular vote being 4.48%
CREATE TABLE table_286271_1 (election VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT election FROM table_286271_1 WHERE _percentage_of_popular_vote = "4.48%"
What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?
CREATE TABLE table_name_64 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_64 WHERE bronze > 1 AND gold > 8 AND silver < 10
In the club of Real Oviedo, what were the points of the competitor with a goal difference less than 38, and 12 wins?
CREATE TABLE table_name_39 (points VARCHAR, club VARCHAR, goal_difference VARCHAR, wins VARCHAR)
SELECT points FROM table_name_39 WHERE goal_difference < 38 AND wins = 12 AND club = "real oviedo"
What is the most laps with a qualification of 106.185?
CREATE TABLE table_name_38 (laps INTEGER, qual VARCHAR)
SELECT MAX(laps) FROM table_name_38 WHERE qual = "106.185"
What is the smallest decile with a Name of st mary's catholic school?
CREATE TABLE table_name_70 (decile INTEGER, name VARCHAR)
SELECT MIN(decile) FROM table_name_70 WHERE name = "st mary's catholic school"
What is the highest number of laps that max biaggi rode on a grid larger than 2?
CREATE TABLE table_name_12 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_12 WHERE rider = "max biaggi" AND grid > 2
Which complaint status has more than 3 records on file?
CREATE TABLE complaints (complaint_status_code VARCHAR)
SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING COUNT(*) > 3
What position did Gene Stahl play
CREATE TABLE table_16441561_5 (position VARCHAR, player VARCHAR)
SELECT position FROM table_16441561_5 WHERE player = "Gene Stahl"
What is the Pick # of the Player from Southern MIssissippi?
CREATE TABLE table_name_98 (pick VARCHAR, school VARCHAR)
SELECT COUNT(pick) FROM table_name_98 WHERE school = "southern mississippi"
What is the result of the UFC 87?
CREATE TABLE table_name_95 (res VARCHAR, event VARCHAR)
SELECT res FROM table_name_95 WHERE event = "ufc 87"
What is the highest Bronze with the Event 1972 Heidelberg and Total less than 5?
CREATE TABLE table_name_27 (bronze INTEGER, event VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_27 WHERE event = "1972 heidelberg" AND total < 5
Where is the University that is also called Hawks?
CREATE TABLE table_19210115_1 (location VARCHAR, nickname VARCHAR)
SELECT location FROM table_19210115_1 WHERE nickname = "Hawks"
What class is ERP W of 800?
CREATE TABLE table_name_9 (class VARCHAR, erp_w VARCHAR)
SELECT class FROM table_name_9 WHERE erp_w = 800
What was the highest attendance on week 13?
CREATE TABLE table_name_37 (attendance INTEGER, week VARCHAR)
SELECT MAX(attendance) FROM table_name_37 WHERE week = 13
Find the id and last name of the student that has the most behavior incidents?
CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Behavior_Incident (student_id VARCHAR)
SELECT T1.student_id, T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
what is the name when the laid down is 28 february 1943?
CREATE TABLE table_name_37 (name VARCHAR, laid_down VARCHAR)
SELECT name FROM table_name_37 WHERE laid_down = "28 february 1943"
What episode number of the season was also number 75 in the series?
CREATE TABLE table_23242968_1 (no_in_season INTEGER, no_in_series VARCHAR)
SELECT MAX(no_in_season) FROM table_23242968_1 WHERE no_in_series = 75
What is the name of the song that is part of the opening theme and has a drama of the revolving doors of vengeance?
CREATE TABLE table_name_82 (name_of_the_song VARCHAR, kind_of_the_song VARCHAR, drama VARCHAR)
SELECT name_of_the_song FROM table_name_82 WHERE kind_of_the_song = "opening theme" AND drama = "revolving doors of vengeance"
What is the highest attendance at a game with a result of 5-1?
CREATE TABLE table_name_94 (attendance INTEGER, result VARCHAR)
SELECT MAX(attendance) FROM table_name_94 WHERE result = "5-1"
What was the Best score during the game played from 1971-1984?
CREATE TABLE table_18914438_1 (best VARCHAR, career VARCHAR)
SELECT best FROM table_18914438_1 WHERE career = "1971-1984"
Bowler of shane bond has what lowest overall number?
CREATE TABLE table_name_37 (over_no INTEGER, bowler VARCHAR)
SELECT MIN(over_no) FROM table_name_37 WHERE bowler = "shane bond"
What is the win percentage when 2010 was 98?
CREATE TABLE table_name_74 (win__percentage VARCHAR)
SELECT win__percentage FROM table_name_74 WHERE 2010 = "98"
What was the order of the Tokyo olympic games?
CREATE TABLE table_name_9 (order VARCHAR, olympic_games VARCHAR)
SELECT order FROM table_name_9 WHERE olympic_games = "tokyo"
What is the color of the locomotive built by Minirail 1954?
CREATE TABLE table_name_42 (colour VARCHAR, built VARCHAR)
SELECT colour FROM table_name_42 WHERE built = "minirail 1954"
What was the host city in years where the host school was école de technologie supérieure?
CREATE TABLE table_2331549_1 (host_city VARCHAR, host_school VARCHAR)
SELECT host_city FROM table_2331549_1 WHERE host_school = "École de technologie supérieure"
What was the name of the opponent Tommy Haas played in the Championship?
CREATE TABLE table_name_31 (championship VARCHAR, opponent_in_the_final VARCHAR)
SELECT championship FROM table_name_31 WHERE opponent_in_the_final = "tommy haas"
where was the game site when the opponent was san diego chargers?
CREATE TABLE table_name_52 (game_site VARCHAR, opponent VARCHAR)
SELECT game_site FROM table_name_52 WHERE opponent = "san diego chargers"
What is the NBA draft result of the player from Kingston, PA?
CREATE TABLE table_name_4 (nba_draft VARCHAR, hometown VARCHAR)
SELECT nba_draft FROM table_name_4 WHERE hometown = "kingston, pa"
What is the name of the away team with a Tie no of 7?
CREATE TABLE table_name_40 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_40 WHERE tie_no = "7"
what is the tie no when the away team is solihull moors?
CREATE TABLE table_name_82 (tie_no INTEGER, away_team VARCHAR)
SELECT SUM(tie_no) FROM table_name_82 WHERE away_team = "solihull moors"
Who was the winner in the 2008 season?
CREATE TABLE table_name_53 (winner VARCHAR, season VARCHAR)
SELECT winner FROM table_name_53 WHERE season = 2008
HOW MANY GAMES WERE TIED AT 76?
CREATE TABLE table_12807904_3 (drawn VARCHAR, points VARCHAR)
SELECT drawn FROM table_12807904_3 WHERE points = "76"
What is Soccer, when Cross Country is Lexington, and when School Year is 2011-12?
CREATE TABLE table_name_74 (soccer VARCHAR, cross_country VARCHAR, school_year VARCHAR)
SELECT soccer FROM table_name_74 WHERE cross_country = "lexington" AND school_year = "2011-12"
What was the result when incumbent Tom Steed was elected?
CREATE TABLE table_1342198_36 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1342198_36 WHERE incumbent = "Tom Steed"
WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA?
CREATE TABLE table_name_12 (transfer_window VARCHAR, country VARCHAR)
SELECT transfer_window FROM table_name_12 WHERE country = "bra"
What is the competition on 15 August 2008?
CREATE TABLE table_name_27 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_27 WHERE date = "15 august 2008"
How many resulted in draws with 34 tries for?
CREATE TABLE table_name_99 (drawn VARCHAR, tries_for VARCHAR)
SELECT drawn FROM table_name_99 WHERE tries_for = "34"
With a time of 53.33, who ranked the highest?
CREATE TABLE table_name_89 (rank INTEGER, time VARCHAR)
SELECT MAX(rank) FROM table_name_89 WHERE time = 53.33
How much total money does player tommy bolt, who has a to par of 9, have?
CREATE TABLE table_name_76 (money___ VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_76 WHERE to_par = 9 AND player = "tommy bolt"
Who is from flower mound, tx?
CREATE TABLE table_name_47 (player VARCHAR, hometown VARCHAR)
SELECT player FROM table_name_47 WHERE hometown = "flower mound, tx"
What is the date of the locomotive named Blacklion Glencar?
CREATE TABLE table_name_69 (date_made VARCHAR, names VARCHAR)
SELECT date_made FROM table_name_69 WHERE names = "blacklion glencar"
Which Goals have Games of 51, and a Debut year smaller than 1992?
CREATE TABLE table_name_87 (goals INTEGER, games VARCHAR, debut_year VARCHAR)
SELECT MIN(goals) FROM table_name_87 WHERE games = 51 AND debut_year < 1992
What are the durations of the longest and the shortest tracks in milliseconds?
CREATE TABLE TRACK (Milliseconds INTEGER)
SELECT MAX(Milliseconds), MIN(Milliseconds) FROM TRACK
What is the height of the fort peck dam which was built before 1968, is located in the united states and has a dam type of TE ?
CREATE TABLE table_name_93 (structure_height_ VARCHAR, m VARCHAR, name VARCHAR, country VARCHAR, year VARCHAR, type VARCHAR)
SELECT structure_height_[m] FROM table_name_93 WHERE year < 1968 AND type = "te" AND country = "united states" AND name = "fort peck dam"
Which is the class AA when graford was the class A
CREATE TABLE table_14747043_1 (class_aA VARCHAR, class_a VARCHAR)
SELECT class_aA FROM table_14747043_1 WHERE class_a = "Graford"
Name the least world rank for south american rank 3
CREATE TABLE table_2249087_1 (world_rank INTEGER, south_american_rank VARCHAR)
SELECT MIN(world_rank) FROM table_2249087_1 WHERE south_american_rank = 3
Which campus has the San Agustin gym?
CREATE TABLE table_name_2 (home_campus VARCHAR, arena_venue VARCHAR)
SELECT home_campus FROM table_name_2 WHERE arena_venue = "san agustin gym"
What Date has an Outcome of runner up, and a Partner of tyra calderwood?
CREATE TABLE table_name_30 (date VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT date FROM table_name_30 WHERE outcome = "runner up" AND partner = "tyra calderwood"
Who is the athlete who's rank is 8 and competed in the olympics during 1948–1952?
CREATE TABLE table_22355_20 (athlete VARCHAR, rank VARCHAR, olympics VARCHAR)
SELECT athlete FROM table_22355_20 WHERE rank = 8 AND olympics = "1948–1952"
what is the date of vacancy when the position in table is 16th and the outgoing manager is russell slade?
CREATE TABLE table_name_25 (date_of_vacancy VARCHAR, position_in_table VARCHAR, outgoing_manager VARCHAR)
SELECT date_of_vacancy FROM table_name_25 WHERE position_in_table = "16th" AND outgoing_manager = "russell slade"
What the average amount of field goals Clark has if he has less than 3 touch downs and less than 5 points?
CREATE TABLE table_name_25 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR)
SELECT AVG(field_goals) FROM table_name_25 WHERE touchdowns < 3 AND player = "clark" AND points < 5
What is the City / State, when Series is ATCC Round 3?
CREATE TABLE table_name_56 (city___state VARCHAR, series VARCHAR)
SELECT city___state FROM table_name_56 WHERE series = "atcc round 3"
What was the 2nd Party in the 1918 Election?
CREATE TABLE table_name_66 (election VARCHAR)
SELECT 2 AS nd_party FROM table_name_66 WHERE election = "1918"
If the Venue is brunswick street oval, what date was the game played ?
CREATE TABLE table_name_81 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_81 WHERE venue = "brunswick street oval"
Which english website has a daily frequency ?
CREATE TABLE table_name_89 (website VARCHAR, language VARCHAR, frequency VARCHAR)
SELECT website FROM table_name_89 WHERE language = "english" AND frequency = "daily"
On what date was the opponent the Green Bay Packers?
CREATE TABLE table_name_43 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_43 WHERE opponent = "green bay packers"
Which throw number had a DOB of 19/10/81?
CREATE TABLE table_name_2 (throws VARCHAR, dob VARCHAR)
SELECT throws FROM table_name_2 WHERE dob = "19/10/81"
What is the title of Amenemhat I?
CREATE TABLE table_name_57 (title VARCHAR, name VARCHAR)
SELECT title FROM table_name_57 WHERE name = "amenemhat i"
Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .
CREATE TABLE students (first_name VARCHAR, permanent_address_id VARCHAR, cell_mobile_number VARCHAR); CREATE TABLE addresses (address_id VARCHAR, country VARCHAR)
SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582'
Which Visiting Team has a Stadium of servus centre?
CREATE TABLE table_name_82 (visiting_team VARCHAR, stadium VARCHAR)
SELECT visiting_team FROM table_name_82 WHERE stadium = "servus centre"
What are the number of runners up for Royal School Dungannon?
CREATE TABLE table_2869837_1 (runners_up VARCHAR, school VARCHAR)
SELECT runners_up FROM table_2869837_1 WHERE school = "Royal school Dungannon"
When did the draw happen?
CREATE TABLE table_name_76 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_76 WHERE result = "draw"
How had the high points when the high assists were from J. Johnson (7)?
CREATE TABLE table_11961582_10 (high_points VARCHAR, high_assists VARCHAR)
SELECT high_points FROM table_11961582_10 WHERE high_assists = "J. Johnson (7)"
On October 17, 1937 what was maximum number or attendants.
CREATE TABLE table_14608759_1 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_14608759_1 WHERE date = "October 17, 1937"
When the Winning score is 68-65-65-68=266, what is the Margin of victory?
CREATE TABLE table_name_59 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_59 WHERE winning_score = 68 - 65 - 65 - 68 = 266
What title was released on August 27?
CREATE TABLE table_1322904_1 (title VARCHAR, release VARCHAR)
SELECT title FROM table_1322904_1 WHERE release = "August 27"
What is the number of the game that was played on October 4?
CREATE TABLE table_name_61 (game INTEGER, date VARCHAR)
SELECT SUM(game) FROM table_name_61 WHERE date = "october 4"
Who rode mad rush?
CREATE TABLE table_name_44 (jockey VARCHAR, horse VARCHAR)
SELECT jockey FROM table_name_44 WHERE horse = "mad rush"
What was the result for incumbent Joseph McKenna who was first elected in 1884?
CREATE TABLE table_name_77 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT result FROM table_name_77 WHERE first_elected = "1884" AND incumbent = "joseph mckenna"
Name the sum of pop for shizuoka
CREATE TABLE table_name_13 (pop_¹ INTEGER, prefecture VARCHAR)
SELECT SUM(pop_¹) FROM table_name_13 WHERE prefecture = "shizuoka"
When the foursome was w-l-h is 1–0–0 won w/ p. creamer 3&2, what was the points %?
CREATE TABLE table_1628607_5 (points__percentage VARCHAR, foursomes_w_l_h VARCHAR)
SELECT points__percentage FROM table_1628607_5 WHERE foursomes_w_l_h = "1–0–0 won w/ P. Creamer 3&2"
What was the highest peak position for the album one of the boys?
CREATE TABLE table_name_48 (peak_position INTEGER, album VARCHAR)
SELECT MAX(peak_position) FROM table_name_48 WHERE album = "one of the boys"
What is the highest entry in November for the game 20?
CREATE TABLE table_27539535_4 (november INTEGER, game VARCHAR)
SELECT MAX(november) FROM table_27539535_4 WHERE game = 20
Which details of journey had simon hoggart as a narrator?
CREATE TABLE table_name_48 (details_of_journey VARCHAR, narrator VARCHAR)
SELECT details_of_journey FROM table_name_48 WHERE narrator = "simon hoggart"
Which is the lowest Decile that is coed?
CREATE TABLE table_name_94 (decile INTEGER, gender VARCHAR)
SELECT MIN(decile) FROM table_name_94 WHERE gender = "coed"
What is the postion of the player listed from Dooly County High School?
CREATE TABLE table_11677691_10 (position VARCHAR, school VARCHAR)
SELECT position FROM table_11677691_10 WHERE school = "Dooly County High school"
What is the slowest 50m split time for a total of 53.74 in a lane of less than 3?
CREATE TABLE table_name_8 (split__50m_ INTEGER, time VARCHAR, lane VARCHAR)
SELECT MAX(split__50m_) FROM table_name_8 WHERE time = 53.74 AND lane < 3
Who scored with a grid of 10 and the highest amount of laps?
CREATE TABLE table_name_21 (laps INTEGER, grid VARCHAR)
SELECT MAX(laps) FROM table_name_21 WHERE grid = 10
What was the manner of departure for the outgoing manager, giuseppe iachini?
CREATE TABLE table_name_77 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT manner_of_departure FROM table_name_77 WHERE outgoing_manager = "giuseppe iachini"
What is the average rank of the match where offaly was the opposition and the total was greater than 9?
CREATE TABLE table_name_5 (rank INTEGER, opposition VARCHAR, total VARCHAR)
SELECT AVG(rank) FROM table_name_5 WHERE opposition = "offaly" AND total > 9
List all of the player ids with a height of at least 180cm and an overall rating higher than 85.
CREATE TABLE Player_Attributes (player_api_id VARCHAR, height VARCHAR, overall_rating INTEGER); CREATE TABLE Player (player_api_id VARCHAR, height VARCHAR, overall_rating INTEGER)
SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85
What's the title of the episode with a broadcast order s04 e01?
CREATE TABLE table_1231892_4 (title VARCHAR, broadcast_order VARCHAR)
SELECT title FROM table_1231892_4 WHERE broadcast_order = "S04 E01"
Show all distinct publishers for books.
CREATE TABLE book_club (publisher VARCHAR)
SELECT DISTINCT publisher FROM book_club
What is the sum of attendance when the result was l 16-13?
CREATE TABLE table_name_54 (attendance INTEGER, result VARCHAR)
SELECT SUM(attendance) FROM table_name_54 WHERE result = "l 16-13"
Which player has figures of 4/14?
CREATE TABLE table_name_46 (player VARCHAR, figures VARCHAR)
SELECT player FROM table_name_46 WHERE figures = "4/14"
What is the highest ERP W of the translator with a call sign of w284av?
CREATE TABLE table_name_94 (erp_w INTEGER, call_sign VARCHAR)
SELECT MAX(erp_w) FROM table_name_94 WHERE call_sign = "w284av"
What are the Votes for the Song by Artist Filipa Batista?
CREATE TABLE table_name_11 (votes VARCHAR, artist VARCHAR)
SELECT votes FROM table_name_11 WHERE artist = "filipa batista"
What is the mean evening gown number when the average is 8.686?
CREATE TABLE table_name_32 (evening_gown INTEGER, average VARCHAR)
SELECT AVG(evening_gown) FROM table_name_32 WHERE average = 8.686
Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Mar INTEGER, Jul VARCHAR)
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city
What is the lowest gp?
CREATE TABLE table_26176081_29 (gp INTEGER)
SELECT MIN(gp) FROM table_26176081_29
What is the 2011 Australian Open and a 2010 QF?
CREATE TABLE table_name_70 (tournament VARCHAR)
SELECT 2011 FROM table_name_70 WHERE tournament = "australian open" AND 2010 = "qf"
What was the place and how many people attended the game on July 11?
CREATE TABLE table_18813011_6 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_18813011_6 WHERE date = "July 11"
What is the game number when the score was l 90–104 (ot)?
CREATE TABLE table_name_59 (game VARCHAR, score VARCHAR)
SELECT COUNT(game) FROM table_name_59 WHERE score = "l 90–104 (ot)"
Who was the challenge winner in the episode that originally aired on January 28, 2009?
CREATE TABLE table_24798489_1 (challenge_winner VARCHAR, original_airdate VARCHAR)
SELECT challenge_winner FROM table_24798489_1 WHERE original_airdate = "January 28, 2009"