answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(car) FROM table_name_48 WHERE yards < 6 AND avg > 5
How many carries for the player with under 6 yards and an average of over 5?
CREATE TABLE table_name_48 (car VARCHAR, yards VARCHAR, avg VARCHAR)
SELECT to_par FROM table_name_33 WHERE place = "t5" AND score = 71 - 68 - 76 = 215
What is the To par of the T5 Place Player with a Score of 71-68-76=215?
CREATE TABLE table_name_33 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT MIN(founded) FROM table_name_37 WHERE institution = "independence community college"
What is independence community college's newest campus?
CREATE TABLE table_name_37 (founded INTEGER, institution VARCHAR)
SELECT county FROM table_22815568_2 WHERE unemployment_rate = "3.6%"
Which county had a 3.6% unemployment rate?
CREATE TABLE table_22815568_2 (county VARCHAR, unemployment_rate VARCHAR)
SELECT details FROM table_name_31 WHERE points = 36
During which competition were a total of 36 points scored?
CREATE TABLE table_name_31 (details VARCHAR, points VARCHAR)
SELECT COUNT(goals__2008_) FROM table_name_86 WHERE games__2008_ < 11 AND debut_round > 15 AND age_at_debut = "20 years, 71 days"
What is the total number of goals that have games under 11, debut round over 15, and age of 20 years, 71 days?
CREATE TABLE table_name_86 (goals__2008_ VARCHAR, age_at_debut VARCHAR, games__2008_ VARCHAR, debut_round VARCHAR)
SELECT SUM(crowd) FROM table_name_46 WHERE home_team = "collingwood"
How many people were in the crowd at collingwood's home game?
CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR)
SELECT date FROM table_name_98 WHERE group = "g1" AND venue = "flemington"
What was the date for the G1 group race at Flemington?
CREATE TABLE table_name_98 (date VARCHAR, group VARCHAR, venue VARCHAR)
SELECT bleeding_time FROM table_14006_1 WHERE platelet_count = "Decreased or unaffected"
what's the bleeding time with platelet count being decreased or unaffected
CREATE TABLE table_14006_1 (bleeding_time VARCHAR, platelet_count VARCHAR)
SELECT COUNT(series_premiere) FROM table_2311410_1 WHERE season = "All-Stars"
How many series premieres did the season "All-stars" have?
CREATE TABLE table_2311410_1 (series_premiere VARCHAR, season VARCHAR)
SELECT AVG(T1.stars), T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT MIN(YEAR) FROM Movie)
What is the average rating stars and title for the oldest movie?
CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (YEAR INTEGER)
SELECT MIN(place) FROM table_name_44 WHERE points > 1 AND machine = "bmw" AND time = "1:18.47.6"
Which place has points larger than 1, a bmw machine, and a time of 1:18.47.6?
CREATE TABLE table_name_44 (place INTEGER, time VARCHAR, points VARCHAR, machine VARCHAR)
SELECT regular_season_champion_s_ FROM table_name_16 WHERE record = "9–0" AND tournament_champion = "north carolina"
Which Regular Season Champion(s) has a Record of 9–0, and a Tournament Champion of north carolina?
CREATE TABLE table_name_16 (regular_season_champion_s_ VARCHAR, record VARCHAR, tournament_champion VARCHAR)
SELECT avgatt FROM table_name_90 WHERE rank = "5"
What is the average attendance when the rank is 5?
CREATE TABLE table_name_90 (avgatt VARCHAR, rank VARCHAR)
SELECT trim FROM table_1373768_1 WHERE fuel_mileage__latest_epa_mpg___us__ = "22 city, 30 hwy, 25 comb"
what's the trim with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb
CREATE TABLE table_1373768_1 (trim VARCHAR, fuel_mileage__latest_epa_mpg___us__ VARCHAR)
SELECT written_by FROM table_15717093_1 WHERE us_viewers__millions_ = "15.85"
Who was the writer when there were 15.85 million US viewers?
CREATE TABLE table_15717093_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MAX(year_joined) FROM table_20887670_1
What is the most recent year joined?
CREATE TABLE table_20887670_1 (year_joined INTEGER)
SELECT COUNT(nhl_team) FROM table_1213511_2 WHERE player = "Terry French"
How many NHL teams does Terry French play for?
CREATE TABLE table_1213511_2 (nhl_team VARCHAR, player VARCHAR)
SELECT class_d_winner FROM table_24852622_1 WHERE round = "6"
Who was the Class D winner in round 6?
CREATE TABLE table_24852622_1 (class_d_winner VARCHAR, round VARCHAR)
SELECT COUNT(total) FROM table_name_24 WHERE bronze < 0
What is the total when there were less than 0 bronze?
CREATE TABLE table_name_24 (total VARCHAR, bronze INTEGER)
SELECT SUM(draws) FROM table_name_19 WHERE position < 4 AND wins = 11 AND points < 38
What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4?
CREATE TABLE table_name_19 (draws INTEGER, points VARCHAR, position VARCHAR, wins VARCHAR)
SELECT prize FROM table_name_11 WHERE winner = "benny spindler"
What was the prize for winner benny spindler?
CREATE TABLE table_name_11 (prize VARCHAR, winner VARCHAR)
SELECT manager FROM table_name_7 WHERE team = "sheffield wednesday"
Which manager has sheffield wednesday as the team?
CREATE TABLE table_name_7 (manager VARCHAR, team VARCHAR)
SELECT architect FROM table_name_68 WHERE height_[m] = 42 AND floors = 10
Who was the architect of the 10 floor building with a height of 42 M?
CREATE TABLE table_name_68 (architect VARCHAR, floors VARCHAR, height_ VARCHAR, m VARCHAR)
SELECT home FROM table_name_35 WHERE visitor = "warriors"
What is the home team of the game with Warriors as the visitor team?
CREATE TABLE table_name_35 (home VARCHAR, visitor VARCHAR)
SELECT label FROM table_name_51 WHERE catalog = "2508668"
What is the Label of the Release with Catalog number 2508668?
CREATE TABLE table_name_51 (label VARCHAR, catalog VARCHAR)
SELECT winner FROM table_name_89 WHERE circuit = "lakeside international raceway"
Who won at the Circuit of lakeside international raceway?
CREATE TABLE table_name_89 (winner VARCHAR, circuit VARCHAR)
SELECT AVG(total_viewers) FROM table_name_96 WHERE share = "17.6%"
What's the average total viewers that has 17.6% Share?
CREATE TABLE table_name_96 (total_viewers INTEGER, share VARCHAR)
SELECT name FROM building WHERE NOT building_id IN (SELECT building_id FROM institution)
Show the name of buildings that do not have any institution.
CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE institution (name VARCHAR, building_id VARCHAR)
SELECT position_in_table FROM table_28181347_6 WHERE replaced_by = "Mark Stimson"
When Mark Stimson started his job in 2007-08 what posiiton was the team on the table
CREATE TABLE table_28181347_6 (position_in_table VARCHAR, replaced_by VARCHAR)
SELECT streak FROM table_name_77 WHERE date = "april 12"
What was the streak on April 12?
CREATE TABLE table_name_77 (streak VARCHAR, date VARCHAR)
SELECT team FROM table_name_8 WHERE chassis = "dallara f302" AND champion = "bastian kolmsee"
Which team, with champion Bastian Kolmsee, used a Dallara f302 for the chassis?
CREATE TABLE table_name_8 (team VARCHAR, chassis VARCHAR, champion VARCHAR)
SELECT game FROM table_name_13 WHERE year = 2011
Which game was released in 2011?
CREATE TABLE table_name_13 (game VARCHAR, year VARCHAR)
SELECT written_by FROM table_1130632_1 WHERE us_viewers__million_ = "18.73"
Who wrote all the shows with 18.73 u.s. viewers?
CREATE TABLE table_1130632_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT division_record FROM table_name_41 WHERE school = "sussex central"
What is the division record of Sussex Central?
CREATE TABLE table_name_41 (division_record VARCHAR, school VARCHAR)
SELECT T1.Fname, T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520
Find the full names of faculties who are members of department with department number 520.
CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR); CREATE TABLE MEMBER_OF (FacID VARCHAR, DNO VARCHAR)
SELECT tournament FROM table_name_29 WHERE date = "18 may 1992"
What tournament is on 18 May 1992?
CREATE TABLE table_name_29 (tournament VARCHAR, date VARCHAR)
SELECT date FROM table_name_33 WHERE road_team = "chicago" AND result = "88-85 (ot)"
Which Date has a Road Team of chicago, and a Result of 88-85 (ot)?
CREATE TABLE table_name_33 (date VARCHAR, road_team VARCHAR, result VARCHAR)
SELECT plaid_cymru FROM table_name_9 WHERE date_s__conducted = "4 may 2011"
I want the plaid cymru for 4 may 2011
CREATE TABLE table_name_9 (plaid_cymru VARCHAR, date_s__conducted VARCHAR)
SELECT home_team FROM table_name_44 WHERE tie_no = "20"
What home team has a tie no of 20?
CREATE TABLE table_name_44 (home_team VARCHAR, tie_no VARCHAR)
SELECT l2_cache FROM table_name_10 WHERE idle_power = "100mw" AND model_number = "nano u3400"
What is the L2 Cache for Model Number nano u3400 with an Idle Power of 100mw?
CREATE TABLE table_name_10 (l2_cache VARCHAR, idle_power VARCHAR, model_number VARCHAR)
SELECT record FROM table_name_83 WHERE date = "feb 25"
What was the record on Feb 25?
CREATE TABLE table_name_83 (record VARCHAR, date VARCHAR)
SELECT introductory_phrase FROM table_25691838_11 WHERE episode__number = 794
What was the introductory phrase for episode 794?
CREATE TABLE table_25691838_11 (introductory_phrase VARCHAR, episode__number VARCHAR)
SELECT MAX(silver) FROM table_name_70 WHERE gold = 4 AND total > 25
What is listed as the highest Silver that also has a Gold of 4 and a Total that's larger than 25?
CREATE TABLE table_name_70 (silver INTEGER, gold VARCHAR, total VARCHAR)
SELECT tujunga FROM table_name_85 WHERE la_crescenta__montrose = "66%"
When La Crescenta-Montrose has 66%, what is Tujunga?
CREATE TABLE table_name_85 (tujunga VARCHAR, la_crescenta__montrose VARCHAR)
SELECT elista FROM table_name_14 WHERE played = 1 AND baku = "153⅓"
What is the elista with 1 played and 153⅓ baku?
CREATE TABLE table_name_14 (elista VARCHAR, played VARCHAR, baku VARCHAR)
SELECT race AS Winner FROM table_1140080_2 WHERE constructor = "Renault"
what's the race winner with constructor  renault
CREATE TABLE table_1140080_2 (race VARCHAR, constructor VARCHAR)
SELECT date FROM table_name_49 WHERE home = "olimpia"
On what Date is Olimpia the Home team?
CREATE TABLE table_name_49 (date VARCHAR, home VARCHAR)
SELECT record FROM table_name_68 WHERE event = "superbrawl 21"
What is the record for the Superbrawl 21?
CREATE TABLE table_name_68 (record VARCHAR, event VARCHAR)
SELECT high_assists FROM table_name_61 WHERE date = "january 2"
What were the high assist on january 2?
CREATE TABLE table_name_61 (high_assists VARCHAR, date VARCHAR)
SELECT city__municipality FROM table_255602_1 WHERE area__km²_ = "176.40"
What city/municipality has area of 176.40?
CREATE TABLE table_255602_1 (city__municipality VARCHAR, area__km²_ VARCHAR)
SELECT left_office FROM table_name_25 WHERE took_office = "1998"
What is Left Office, when Took Office is 1998?
CREATE TABLE table_name_25 (left_office VARCHAR, took_office VARCHAR)
SELECT MAX(domestic_freight) FROM table_name_23 WHERE change = "+9,8%" AND total_freight_and_mail > 3 OFFSET 278
What is the most domestic freight with a change of +9,8% and a total freight and mail of more than 3,278?
CREATE TABLE table_name_23 (domestic_freight INTEGER, change VARCHAR, total_freight_and_mail VARCHAR)
SELECT visitor FROM table_name_64 WHERE home = "phoenix" AND record = "2–5–0"
Who visited phoenix with a Record of 2–5–0?
CREATE TABLE table_name_64 (visitor VARCHAR, home VARCHAR, record VARCHAR)
SELECT COUNT(year) FROM table_12032893_1 WHERE home_town = "Baton Rouge, LA"
How many years have the home town of Baton Rouge, LA?
CREATE TABLE table_12032893_1 (year VARCHAR, home_town VARCHAR)
SELECT venue FROM table_name_46 WHERE result = "eng by 6 wkts"
Name the venue for eng by 6 wkts
CREATE TABLE table_name_46 (venue VARCHAR, result VARCHAR)
SELECT MAX(1 AS st_prize__) AS $__ FROM table_11622896_1 WHERE location = "South Carolina"
What is the largest 1st prize( $ ) at the South Carolina location?
CREATE TABLE table_11622896_1 (location VARCHAR)
SELECT MIN(week) FROM table_13258876_2 WHERE game_site = "Los Angeles Memorial Coliseum"
What week did the Seahawks play at los angeles memorial coliseum?
CREATE TABLE table_13258876_2 (week INTEGER, game_site VARCHAR)
SELECT COUNT(outcome) FROM table_22597626_5 WHERE opponent_in_the_final = "Johan Kriek"
How many outcomes are listed when the final opponent was Johan Kriek?
CREATE TABLE table_22597626_5 (outcome VARCHAR, opponent_in_the_final VARCHAR)
SELECT college FROM table_15592941_1 WHERE player_name = "Jeremy Zuttah"
What college did jeremy zuttah attend?
CREATE TABLE table_15592941_1 (college VARCHAR, player_name VARCHAR)
SELECT COUNT(score) FROM table_22654073_8 WHERE record = "27-9"
How many scores are associated with a record of 27-9?
CREATE TABLE table_22654073_8 (score VARCHAR, record VARCHAR)
SELECT date FROM table_name_78 WHERE away_team = "hawthorn"
What date was the away team Hawthorn?
CREATE TABLE table_name_78 (date VARCHAR, away_team VARCHAR)
SELECT player FROM table_name_84 WHERE score = 68 - 71 = 139
Who is the player with a score of 68-71=139?
CREATE TABLE table_name_84 (player VARCHAR, score VARCHAR)
SELECT host_team FROM table_name_86 WHERE final_score = "42-23"
Which Host Team has Final Score of 42-23?
CREATE TABLE table_name_86 (host_team VARCHAR, final_score VARCHAR)
SELECT AVG(total) FROM table_name_41 WHERE player = "corey pavin" AND to_par > 5
Player of corey pavin, and a To par larger than 5 has what average total?
CREATE TABLE table_name_41 (total INTEGER, player VARCHAR, to_par VARCHAR)
SELECT name FROM table_name_33 WHERE games = "2008 beijing"
Who won a medal at the 2008 Beijing Olympics?
CREATE TABLE table_name_33 (name VARCHAR, games VARCHAR)
SELECT AVG(total) FROM table_name_93 WHERE gold = 2 AND silver < 1
What is the average total medals of the team with 2 gold and less than 1 silver?
CREATE TABLE table_name_93 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT AVG(position) FROM table_name_60 WHERE lost < 7
What is the position when lost is less than 7?
CREATE TABLE table_name_60 (position INTEGER, lost INTEGER)
SELECT SUM(rank) FROM table_name_45 WHERE name = "will solomon" AND games > 21
What is the sum of Rank, when Name is Will Solomon, and when Games is greater than 21?
CREATE TABLE table_name_45 (rank INTEGER, name VARCHAR, games VARCHAR)
SELECT COUNT(rank) FROM table_name_85 WHERE goals = 158 AND matches > 362
What is the Rank of the player with 158 Goals in more than 362 Matches?
CREATE TABLE table_name_85 (rank VARCHAR, goals VARCHAR, matches VARCHAR)
SELECT type FROM table_name_22 WHERE capacity = "10 tons" AND number = "24-27"
Which Type has a Capacity of 10 tons, and a Number of 24-27?
CREATE TABLE table_name_22 (type VARCHAR, capacity VARCHAR, number VARCHAR)
SELECT original_air_date FROM table_28210383_1 WHERE prod_code = "2ACX12"
What was the orginal air date for episodes with production code 2acx12?
CREATE TABLE table_28210383_1 (original_air_date VARCHAR, prod_code VARCHAR)
SELECT county FROM table_20278716_2 WHERE others__number = 915
What county had 915 third party voters?
CREATE TABLE table_20278716_2 (county VARCHAR, others__number VARCHAR)
SELECT club FROM table_name_2 WHERE league_goals = "16" AND total = 20
Which club has 16 league goals for a total of 20?
CREATE TABLE table_name_2 (club VARCHAR, league_goals VARCHAR, total VARCHAR)
SELECT equipment FROM table_name_93 WHERE points < 442 AND position = 9
What is the Equipment that has a Points littler than 442, and a Position of 9?
CREATE TABLE table_name_93 (equipment VARCHAR, points VARCHAR, position VARCHAR)
SELECT first_elected FROM table_1341453_40 WHERE district = "Pennsylvania 2"
When was Chaka Fattah first elected in the Pennsylvania 2 district?
CREATE TABLE table_1341453_40 (first_elected VARCHAR, district VARCHAR)
SELECT originalairdate FROM table_27218002_2 WHERE ratings = "1.37 Million"
What date did the epiode that had 1.37 million as the rating originally air?
CREATE TABLE table_27218002_2 (originalairdate VARCHAR, ratings VARCHAR)
SELECT entrant FROM table_name_87 WHERE year = 1963
Who was in 1963?
CREATE TABLE table_name_87 (entrant VARCHAR, year VARCHAR)
SELECT T1.gender, T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1
Return the gender and name of artist who produced the song with the lowest resolution.
CREATE TABLE artist (gender VARCHAR, artist_name VARCHAR); CREATE TABLE song (artist_name VARCHAR, resolution VARCHAR)
SELECT MAX(drawn) FROM table_name_75 WHERE lost > 4
Lost larger than 4 is what highest drawn?
CREATE TABLE table_name_75 (drawn INTEGER, lost INTEGER)
SELECT opposition FROM table_name_25 WHERE tally = "0-11"
What is the opposition when the tally was 0-11?
CREATE TABLE table_name_25 (opposition VARCHAR, tally VARCHAR)
SELECT COUNT(viewers) FROM table_16072430_1 WHERE share = 7 AND weekly_rank = "64"
What is the total number of viewers where the share is 7 and the week rank is 64?
CREATE TABLE table_16072430_1 (viewers VARCHAR, share VARCHAR, weekly_rank VARCHAR)
SELECT MAX(built) FROM table_name_44 WHERE name = "queen nefertiti (pegasus two)"
What is the most recent year that Queen Nefertiti (pegasus two) was built?
CREATE TABLE table_name_44 (built INTEGER, name VARCHAR)
SELECT average FROM table_23662356_3 WHERE number_of_dances = 4
What was the average score for the couple that had 4 dances?
CREATE TABLE table_23662356_3 (average VARCHAR, number_of_dances VARCHAR)
SELECT arch_type FROM table_name_23 WHERE name = "pont de montanges (pont-des-pierres)"
What kind of arch is the pont de montanges (pont-des-pierres)?
CREATE TABLE table_name_23 (arch_type VARCHAR, name VARCHAR)
SELECT type FROM table_name_88 WHERE modem = "v.90" AND storage = "2 mb" AND brand = "rca" AND model = "rw-2110"
What is the type of the RCA RW-2110, which has 2 MB of storage and a v.90 modem?
CREATE TABLE table_name_88 (type VARCHAR, model VARCHAR, brand VARCHAR, modem VARCHAR, storage VARCHAR)
SELECT central FROM table_26614365_1 WHERE english = "robbers"
What is the central word for "robbers"?
CREATE TABLE table_26614365_1 (central VARCHAR, english VARCHAR)
SELECT home FROM table_name_94 WHERE visitor = "california"
What was the home who had California visiting?
CREATE TABLE table_name_94 (home VARCHAR, visitor VARCHAR)
SELECT owned_since FROM table_1353096_1 WHERE channel_tv___dt__ = "10 (10)"
When was 10 (10) bought?
CREATE TABLE table_1353096_1 (owned_since VARCHAR, channel_tv___dt__ VARCHAR)
SELECT COUNT(year) FROM table_name_84 WHERE nominee = "simon baker"
How many years does simon baker appear as a nominee?
CREATE TABLE table_name_84 (year VARCHAR, nominee VARCHAR)
SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3
Report all majors that have less than 3 students.
CREATE TABLE STUDENT (Major VARCHAR)
SELECT title FROM table_10749143_2 WHERE us_viewers__millions_ = "10.34"
What is the title of the episode wtih 10.34 million U.S viewers?
CREATE TABLE table_10749143_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT nfl_team FROM table_2508633_11 WHERE position = "Linebacker" AND player = "Danny Triplett"
What NFL Team has the player Danny Triplett with the position linebacker?
CREATE TABLE table_2508633_11 (nfl_team VARCHAR, position VARCHAR, player VARCHAR)
SELECT AVG(enrollment) FROM table_name_6 WHERE institution = "whitman college" AND founded > 1859
What is the Enrollment at Whitman College Founded after 1859?
CREATE TABLE table_name_6 (enrollment INTEGER, institution VARCHAR, founded VARCHAR)
SELECT time_retired FROM table_name_47 WHERE laps = 47 AND driver = "rené arnoux"
Tell me the time/retired with Laps of 47 and driver of rené arnoux
CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT penanced FROM table_name_3 WHERE number_of_autos_da_fé_with_known_sentences = "71 (1600–1773)"
How many were penanced when the number with known sentences was 71 (1600–1773)?
CREATE TABLE table_name_3 (penanced VARCHAR, number_of_autos_da_fé_with_known_sentences VARCHAR)
SELECT amiga_demo FROM table_2490289_1 WHERE pc_demo = "Tribes ( Pulse & Melon Dezign)"
Who won best amiga demo when tribes ( pulse & melon dezign) won best pc demo?
CREATE TABLE table_2490289_1 (amiga_demo VARCHAR, pc_demo VARCHAR)
SELECT COUNT(ordered) FROM table_name_10 WHERE name = "monge"
How many ships are named Monge?
CREATE TABLE table_name_10 (ordered VARCHAR, name VARCHAR)
SELECT SUM(pleasure) FROM table_name_57 WHERE drug = "lsd" AND psychological_dependence > 1.1
What is the sum of Pleasure, when Drug is "LSD", and when Psychological Dependence is greater than 1.1?
CREATE TABLE table_name_57 (pleasure INTEGER, drug VARCHAR, psychological_dependence VARCHAR)
SELECT year FROM table_12043148_2 WHERE glos_ & _wilts = "Gloucester City Winget"
what is the year where glos & wilts is gloucester city winget?
CREATE TABLE table_12043148_2 (year VARCHAR, glos_ VARCHAR, _wilts VARCHAR)