answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(losses) FROM table_name_51 WHERE goal_difference = 5 AND draws > 10 AND goals_against = 43
How many losses are there with 5 goal differences, drew more than 10 times, and 43 goals against?
CREATE TABLE table_name_51 (losses VARCHAR, goals_against VARCHAR, goal_difference VARCHAR, draws VARCHAR)
SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500
display all the information of the employees whose salary if within the range of smallest salary and 2500.
CREATE TABLE employees (salary INTEGER)
SELECT COUNT(last_5_meetings) FROM table_16201038_4 WHERE overall_record = "MU, 21-19"
How many times did the team achieve an overrall record of mu, 21-19?
CREATE TABLE table_16201038_4 (last_5_meetings VARCHAR, overall_record VARCHAR)
SELECT COUNT(grid) FROM table_name_17 WHERE laps > 27
What is the total grid number with laps that are larger than 27?
CREATE TABLE table_name_17 (grid VARCHAR, laps INTEGER)
SELECT result FROM table_1342149_24 WHERE district = "Mississippi 2"
Name the result for mississippi 2
CREATE TABLE table_1342149_24 (result VARCHAR, district VARCHAR)
SELECT Fname, Lname, Age FROM Student WHERE Sex = 'F'
Show first name, last name, age for all female students. Their sex is F.
CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, Age VARCHAR, Sex VARCHAR)
SELECT saturday_shani__saturn_ FROM table_1277350_3 WHERE sunday_surya__the_sun_ = "ஞாயிற்று கிழமை Nyāyitru kizhamai"
In the system where Sunday is ஞாயிற்று கிழமை nyāyitru kizhamai, what is Saturday?
CREATE TABLE table_1277350_3 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR)
SELECT round FROM table_name_36 WHERE opponent = "jonatas novaes"
Which round did the bout against Jonatas Novaes end in?
CREATE TABLE table_name_36 (round VARCHAR, opponent VARCHAR)
SELECT 2008 FROM table_name_91 WHERE 2009 = "a" AND tournament = "madrid masters"
What is 2008, when 2009 is "A", and when Tournament is "Madrid Masters"?
CREATE TABLE table_name_91 (tournament VARCHAR)
SELECT date FROM table_name_17 WHERE away_team = "arsenal"
When was Arsenal was the away team?
CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(series__number) FROM table_25356350_2 WHERE written_by = "Lew Schneider"
How many episodes are written by Lew Schneider?
CREATE TABLE table_25356350_2 (series__number VARCHAR, written_by VARCHAR)
SELECT champion FROM table_name_52 WHERE runner_up = "christopher miles"
Name the champion for christopher miles runner-up
CREATE TABLE table_name_52 (champion VARCHAR, runner_up VARCHAR)
SELECT directed_by FROM table_12722302_2 WHERE us_viewers__million_ = "3.19"
Who directed the episode with 3.19 million u.s. viewers?
CREATE TABLE table_12722302_2 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT MAX(founded) FROM table_261946_3
Which founding year corresponds with the highest enrollment?
CREATE TABLE table_261946_3 (founded INTEGER)
SELECT original_air_date FROM table_27969432_3 WHERE directed_by = "Fred Toye"
What are the original air dates for episodes directed by fred toye?
CREATE TABLE table_27969432_3 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT game_site FROM table_27764201_2 WHERE opponent = "Hamburg Sea Devils"
Where did the Centurions play the Hamburg Sea Devils?
CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)
SELECT COUNT(year_of_most_recent_appearance) FROM table_name_95 WHERE corps_name = "suncoast sound" AND number_of_finals_appearances > 7
What is the year of most recent appearance of the Suncoast sound, who had more than 7 finals appearances?
CREATE TABLE table_name_95 (year_of_most_recent_appearance VARCHAR, corps_name VARCHAR, number_of_finals_appearances VARCHAR)
SELECT t2.section_title FROM documents AS t1 JOIN document_sections AS t2 ON t1.document_code = t2.document_code WHERE t1.document_name = "David CV"
What are all the section titles of the document named "David CV"?
CREATE TABLE documents (document_code VARCHAR, document_name VARCHAR); CREATE TABLE document_sections (section_title VARCHAR, document_code VARCHAR)
SELECT branding FROM table_2610582_2 WHERE callsign = "DWEC-TV"
The callsign DWEC-TV has what branding?
CREATE TABLE table_2610582_2 (branding VARCHAR, callsign VARCHAR)
SELECT record FROM table_name_34 WHERE date = "july 2"
What was the record on July 2?
CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR)
SELECT per_capita_income FROM table_name_7 WHERE median_family_income = "$72,288"
What is the Per capita income where Median family income is $72,288?
CREATE TABLE table_name_7 (per_capita_income VARCHAR, median_family_income VARCHAR)
SELECT background FROM table_name_20 WHERE result = "07 fired in task 6 (2009-04-05)"
What is the Background of the contestant with a Result of 07 fired in task 6 (2009-04-05)?
CREATE TABLE table_name_20 (background VARCHAR, result VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
What are the vocal types used in song "Le Pop"?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT place FROM table_name_11 WHERE score = 69 - 68 - 69 - 70 = 276
What place did the golfer who had a score of 69-68-69-70=276 finish in?
CREATE TABLE table_name_11 (place VARCHAR, score VARCHAR)
SELECT COUNT(part_6) FROM table_13241993_3 WHERE episode__number = 5
How many part 6 parts are there in the episode number 5?
CREATE TABLE table_13241993_3 (part_6 VARCHAR, episode__number VARCHAR)
SELECT MAX(draws) FROM table_name_74 WHERE goals_conceded < 154 AND games_played < 36
What is the most draws when less than 154 goals were conceded, and less than 36 games played?
CREATE TABLE table_name_74 (draws INTEGER, goals_conceded VARCHAR, games_played VARCHAR)
SELECT call_sign FROM table_1404984_1 WHERE virtual_channel = "33.7"
What is channel 33.7's official call sign?
CREATE TABLE table_1404984_1 (call_sign VARCHAR, virtual_channel VARCHAR)
SELECT material_or_non_material FROM table_name_36 WHERE positional_or_automatic = "either" AND count_rectified = "no" AND opponents = "either"
What is the designation of material or non-material for either positional or automatic with no rectified count and either opponent?
CREATE TABLE table_name_36 (material_or_non_material VARCHAR, opponents VARCHAR, positional_or_automatic VARCHAR, count_rectified VARCHAR)
SELECT wins FROM table_name_35 WHERE points < 6 AND class = "350cc"
How many wins for the team with points less than 6 and a 350cc class?
CREATE TABLE table_name_35 (wins VARCHAR, points VARCHAR, class VARCHAR)
SELECT country FROM table_name_73 WHERE place = "t6" AND player = "eduardo romero"
What is the country that has a place of T6 that Eduardo Romero plays for?
CREATE TABLE table_name_73 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT road_team FROM table_name_29 WHERE date = "april 10"
What is Road Team, when Date is "April 10"?
CREATE TABLE table_name_29 (road_team VARCHAR, date VARCHAR)
SELECT position FROM table_name_36 WHERE nationality = "united states" AND player = "justin mapp category:articles with hcards"
What's the position when the player was Justin Mapp Category:articles with hcards with a United States nationality?
CREATE TABLE table_name_36 (position VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT score FROM table_name_65 WHERE site_stadium = "alex box stadium" AND date = "may 10"
What was the score for the game played on May 10 at Alex Box Stadium?
CREATE TABLE table_name_65 (score VARCHAR, site_stadium VARCHAR, date VARCHAR)
SELECT COUNT(_percentage) FROM table_1108394_24 WHERE manhattan = "45,901"
What is the percentage for manhattan 45,901?
CREATE TABLE table_1108394_24 (_percentage VARCHAR, manhattan VARCHAR)
SELECT original_air_date FROM table_29391888_1 WHERE season__number = 2
What is the original air date for the season# 2?
CREATE TABLE table_29391888_1 (original_air_date VARCHAR, season__number VARCHAR)
SELECT MIN(points) FROM table_name_85 WHERE touchdowns < 2 AND extra_points = 7 AND field_goals < 0
Which Points is the lowest one that has Touchdowns smaller than 2, and an Extra points of 7, and a Field goals smaller than 0?
CREATE TABLE table_name_85 (points INTEGER, field_goals VARCHAR, touchdowns VARCHAR, extra_points VARCHAR)
SELECT h___a FROM table_name_50 WHERE scorers = "hughes"
What was the H/A when the scorer was Hughes?
CREATE TABLE table_name_50 (h___a VARCHAR, scorers VARCHAR)
SELECT car__number FROM table_name_58 WHERE points = 130
What car number has 130 points?
CREATE TABLE table_name_58 (car__number VARCHAR, points VARCHAR)
SELECT _percentage_yes FROM table_256286_14 WHERE yes_votes = 78961
Name the % yes for yes votes for 78961
CREATE TABLE table_256286_14 (_percentage_yes VARCHAR, yes_votes VARCHAR)
SELECT COUNT(attendance) FROM table_name_43 WHERE league_position = "16th" AND score_f_a = "0–3"
How many were in attendance when the league position was 16th and the score was F–A of 0–3?
CREATE TABLE table_name_43 (attendance VARCHAR, league_position VARCHAR, score_f_a VARCHAR)
SELECT player FROM table_23316034_16 WHERE innings = 82
What is the name of the player if the innings is 82?
CREATE TABLE table_23316034_16 (player VARCHAR, innings VARCHAR)
SELECT points FROM table_name_42 WHERE bike = "motobi tsr 6" AND riders = "kohta nozane"
How many points does Kohta Nozane have with a Motobi TSR 6?
CREATE TABLE table_name_42 (points VARCHAR, bike VARCHAR, riders VARCHAR)
SELECT set_1 FROM table_name_22 WHERE set_2 = "17-25"
What is Set 1, when Set 2 is 17-25?
CREATE TABLE table_name_22 (set_1 VARCHAR, set_2 VARCHAR)
SELECT COUNT(round) FROM table_name_94 WHERE position = "d" AND player = "andrew campbell"
What is the total number of Round, when Position is "D", and when Player is "Andrew Campbell"?
CREATE TABLE table_name_94 (round VARCHAR, position VARCHAR, player VARCHAR)
SELECT date_of_vacancy FROM table_name_75 WHERE team = "dundee"
What is the vacancy date of Dundee?
CREATE TABLE table_name_75 (date_of_vacancy VARCHAR, team VARCHAR)
SELECT position FROM table_name_67 WHERE pick = "234"
Name the position of pick 234
CREATE TABLE table_name_67 (position VARCHAR, pick VARCHAR)
SELECT outcome FROM table_name_34 WHERE venue = "india open"
What was the outcome for the India Open?
CREATE TABLE table_name_34 (outcome VARCHAR, venue VARCHAR)
SELECT position FROM table_name_78 WHERE dob = "3 june 1989"
Which Position has a D.O.B. of 3 june 1989?
CREATE TABLE table_name_78 (position VARCHAR, dob VARCHAR)
SELECT date FROM table_name_66 WHERE year = "1967"
What is the Date of the Int'l Debut of 1967?
CREATE TABLE table_name_66 (date VARCHAR, year VARCHAR)
SELECT primary_sponsor_s_ FROM table_name_45 WHERE driver_s_ = "mike wallace"
Who is Mike Wallace's primary Sponsor(s)?
CREATE TABLE table_name_45 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR)
SELECT season FROM table_name_6 WHERE win_percentage = ".354"
Which season has a .354 Win%?
CREATE TABLE table_name_6 (season VARCHAR, win_percentage VARCHAR)
SELECT MIN(losses) FROM table_name_53 WHERE wins > 0
What is the lowest number of losses for a team with more than 0 wins?
CREATE TABLE table_name_53 (losses INTEGER, wins INTEGER)
SELECT position FROM table_11545282_18 WHERE player = "DeShawn Stevenson"
Which position does Deshawn Stevenson play?
CREATE TABLE table_11545282_18 (position VARCHAR, player VARCHAR)
SELECT country FROM table_name_21 WHERE city = "yerevan"
What country is Yerevan located in?
CREATE TABLE table_name_21 (country VARCHAR, city VARCHAR)
SELECT date FROM table_name_7 WHERE home = "grizzlies" AND visitor = "timberwolves"
What was the date of the game in which the home team was the Grizzlies and the visiting team was the Timberwolves?
CREATE TABLE table_name_7 (date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT position FROM table_name_36 WHERE round > 10 AND name = "shawn mccarthy"
Which Position has a Round larger than 10, and a Name of shawn mccarthy?
CREATE TABLE table_name_36 (position VARCHAR, round VARCHAR, name VARCHAR)
SELECT director_s_ FROM table_name_13 WHERE film = "mi-temps"
Which director made Mi-temps?
CREATE TABLE table_name_13 (director_s_ VARCHAR, film VARCHAR)
SELECT status FROM table_name_9 WHERE commissioned = "july 28, 1963"
What is the status of the fleet that was commissioned on July 28, 1963?
CREATE TABLE table_name_9 (status VARCHAR, commissioned VARCHAR)
SELECT MIN(a_score) FROM table_name_61 WHERE b_score = 9.15 AND total = 16.05
What is the lowest A Score when the B Score is 9.15, and total is 16.05?
CREATE TABLE table_name_61 (a_score INTEGER, b_score VARCHAR, total VARCHAR)
SELECT SUM(points) FROM table_name_39 WHERE equipment = "zabel-bsu" AND position = 42
What is the sum of Points, when Equipment was "Zabel-BSU", and when Position was 42?
CREATE TABLE table_name_39 (points INTEGER, equipment VARCHAR, position VARCHAR)
SELECT built FROM table_name_79 WHERE name = "gila bend overpass"
In what year was the Gila Bend Overpass built?
CREATE TABLE table_name_79 (built VARCHAR, name VARCHAR)
SELECT resolution FROM table_name_47 WHERE network = "carismatv"
What is the resolution of the network Carismatv?
CREATE TABLE table_name_47 (resolution VARCHAR, network VARCHAR)
SELECT to_par FROM table_name_71 WHERE country = "sweden"
What is Top Par, when Country is Sweden?
CREATE TABLE table_name_71 (to_par VARCHAR, country VARCHAR)
SELECT voice_actor__japanese_ FROM table_1410384_1 WHERE character_name = "Goku"
who is the the voice actor (japanese) with character name being goku
CREATE TABLE table_1410384_1 (voice_actor__japanese_ VARCHAR, character_name VARCHAR)
SELECT class FROM table_name_36 WHERE year = 1968
Which class has a Year of 1968?
CREATE TABLE table_name_36 (class VARCHAR, year VARCHAR)
SELECT MIN(no_in_series) FROM table_22347090_4 WHERE us_viewers__million_ = "1.98"
Which series number had 1.98 million viewers?
CREATE TABLE table_22347090_4 (no_in_series INTEGER, us_viewers__million_ VARCHAR)
SELECT AVG(silver) FROM table_name_79 WHERE bronze = 3 AND total > 4
What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals?
CREATE TABLE table_name_79 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT score FROM table_28498999_5 WHERE player = "Matt Kuchar"
What is the score when the player is Matt Kuchar?
CREATE TABLE table_28498999_5 (score VARCHAR, player VARCHAR)
SELECT MAX(year_built) FROM table_178408_1 WHERE church_name = "Davik Kyrkje"
Name the most year built for davik kyrkje
CREATE TABLE table_178408_1 (year_built INTEGER, church_name VARCHAR)
SELECT year__ceremony_ FROM table_name_51 WHERE director = "farid gumbatov category:articles with hcards"
What is Year (Ceremony), when Director is "Farid Gumbatov Category:Articles With hCards"?
CREATE TABLE table_name_51 (year__ceremony_ VARCHAR, director VARCHAR)
SELECT MIN(draw) FROM table_name_94 WHERE rank = 4
What is the lowest draw with rank 4?
CREATE TABLE table_name_94 (draw INTEGER, rank VARCHAR)
SELECT surface FROM table_name_67 WHERE date = "23 october 2000"
What type of surface did they play on 23 October 2000?
CREATE TABLE table_name_67 (surface VARCHAR, date VARCHAR)
SELECT name FROM table_10706879_3 WHERE winning_driver = "Johnny Rutherford"
What are the races that johnny rutherford has won?
CREATE TABLE table_10706879_3 (name VARCHAR, winning_driver VARCHAR)
SELECT townland FROM table_30120619_1 WHERE area__acres__ = 165
Which townland has an area of 165 acres?
CREATE TABLE table_30120619_1 (townland VARCHAR, area__acres__ VARCHAR)
SELECT odds FROM table_name_72 WHERE horse = "ready's echo"
What are the Odds for the Horse called Ready's Echo?
CREATE TABLE table_name_72 (odds VARCHAR, horse VARCHAR)
SELECT Running AS time FROM table_name_46 WHERE channel = "bbc four" AND date = "23 march 2008"
What is the running time of the transmission on bbc four channels on 23 March 2008?
CREATE TABLE table_name_46 (Running VARCHAR, channel VARCHAR, date VARCHAR)
SELECT stage_reached FROM table_name_23 WHERE venue = "edmonton green"
What is the stage reached for venue edmonton green?
CREATE TABLE table_name_23 (stage_reached VARCHAR, venue VARCHAR)
SELECT duration__days_ FROM table_245800_2 WHERE flight_down = "Soyuz 35"
How many days were the station of Soyuz 35 in flight down were in orbit?
CREATE TABLE table_245800_2 (duration__days_ VARCHAR, flight_down VARCHAR)
SELECT MAX(population__2000_) FROM table_2004733_2 WHERE area__in_km_2__ = "1.2530"
How many people lived in the city which has 1.2530 km² in the year 2000?
CREATE TABLE table_2004733_2 (population__2000_ INTEGER, area__in_km_2__ VARCHAR)
SELECT nation FROM table_name_2 WHERE silver = 5 AND gold > 4
Which Nation won 5 Silver, and more than 4 Gold?
CREATE TABLE table_name_2 (nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT macedonian FROM table_26757_4 WHERE serbo_croatian = "рука / ruka"
When рука / ruka is the serbo-croatian what is the macedonian?
CREATE TABLE table_26757_4 (macedonian VARCHAR, serbo_croatian VARCHAR)
SELECT trailers FROM table_name_92 WHERE motors = "145"
I want the trailers for motors of 145
CREATE TABLE table_name_92 (trailers VARCHAR, motors VARCHAR)
SELECT owner FROM table_name_29 WHERE format = "hot adult contemporary"
Who is the owner with a Hot Adult Contemporary format?
CREATE TABLE table_name_29 (owner VARCHAR, format VARCHAR)
SELECT engine FROM table_name_61 WHERE power = "48kw (65 ps) @ 5600 rpm"
Which engine had a 48kw (65 ps) @ 5600 rpm power?
CREATE TABLE table_name_61 (engine VARCHAR, power VARCHAR)
SELECT chassis FROM table_name_12 WHERE engine = "offy" AND finish = "25th"
What is the chassis for offy engine and 25th finish?
CREATE TABLE table_name_12 (chassis VARCHAR, engine VARCHAR, finish VARCHAR)
SELECT away_team AS score FROM table_name_17 WHERE home_team = "melbourne"
Which Away team score has a Home team of melbourne?
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
SELECT date_stored FROM All_documents WHERE Document_name = "Marry CV"
What is the date when the document "Marry CV" was stored?
CREATE TABLE All_documents (date_stored VARCHAR, Document_name VARCHAR)
SELECT COUNT(year) FROM table_25037577_1 WHERE high_school_principal = "Lynn Muscarella" AND superintendent = "Charlie Wiltse"
How many years was lynn muscarella the high school principal and charlie wiltse the superintendent?
CREATE TABLE table_25037577_1 (year VARCHAR, high_school_principal VARCHAR, superintendent VARCHAR)
SELECT dance FROM table_name_28 WHERE visual_arts = "bryon kim"
What Dance has the Visual Arts of Bryon Kim?
CREATE TABLE table_name_28 (dance VARCHAR, visual_arts VARCHAR)
SELECT T2.Delegate, T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District
Show the delegates and the names of county they belong to.
CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)
SELECT AVG(average) FROM table_name_54 WHERE evening_gown = 7.52 AND swimsuit > 7.78
I want the average for evening gown of 7.52 and swimsuit larger than 7.78
CREATE TABLE table_name_54 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR)
SELECT written_by FROM table_21994729_2 WHERE prod_code = "1APX11"
Who wore the episode with the production code of 1apx11?
CREATE TABLE table_21994729_2 (written_by VARCHAR, prod_code VARCHAR)
SELECT position FROM table_2897457_3 WHERE nhl_team = "New Jersey Devils"
Which position has new Jersey Devils as the nhl team?
CREATE TABLE table_2897457_3 (position VARCHAR, nhl_team VARCHAR)
SELECT quarterfinals FROM table_17289604_38 WHERE round_of_32 = "S Williams / V Williams ( USA ) L 6–4, 5–7, 1–6"
What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6–4, 5–7, 1–6?
CREATE TABLE table_17289604_38 (quarterfinals VARCHAR, round_of_32 VARCHAR)
SELECT played FROM table_name_62 WHERE points_against = "374"
What is Played, when Points Against is "374"?
CREATE TABLE table_name_62 (played VARCHAR, points_against VARCHAR)
SELECT model FROM table_name_30 WHERE total_production = 1347
Tell me the model for total production of 1347
CREATE TABLE table_name_30 (model VARCHAR, total_production VARCHAR)
SELECT COUNT(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew"
How many distinct colleges are associated with players from the team with name "Columbus Crew".
CREATE TABLE match_season (College VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR)
SELECT MIN(to_par) FROM table_name_8 WHERE player = "gary player" AND total > 145
What is the lowest To par of gary player, with more than 145 total?
CREATE TABLE table_name_8 (to_par INTEGER, player VARCHAR, total VARCHAR)
SELECT driver FROM table_name_45 WHERE grid = 13
Who was driving with a Grid of 13?
CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR)
SELECT fatalities FROM table_name_50 WHERE country = "italy"
How many fatalities does Italy have?
CREATE TABLE table_name_50 (fatalities VARCHAR, country VARCHAR)