answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT AVG(prominence) FROM mountain WHERE country = 'Morocco'
What are the average prominence of the mountains in country 'Morocco'?
CREATE TABLE mountain (prominence INTEGER, country VARCHAR)
SELECT visiting_team FROM table_name_10 WHERE host_team = "dallas cowboys"
Who was the visiting team in the game against the Dallas Cowboys?
CREATE TABLE table_name_10 (visiting_team VARCHAR, host_team VARCHAR)
SELECT MAX(size__steps_) FROM table_name_38 WHERE just_ratio = "16:13"
ratio of 16:13 has how many highest size (steps)?
CREATE TABLE table_name_38 (size__steps_ INTEGER, just_ratio VARCHAR)
SELECT results FROM table_name_90 WHERE district = "arizona 1"
What were the Results in Arizona 1 District?
CREATE TABLE table_name_90 (results VARCHAR, district VARCHAR)
SELECT COUNT(first_team) FROM table_26130295_3 WHERE player = "Dimitris Diamantidis"
who is first team when dimitris diamantidis play.
CREATE TABLE table_26130295_3 (first_team VARCHAR, player VARCHAR)
SELECT gender FROM table_name_3 WHERE riding = "st. john's south—mount pearl"
The candidate with Riding of st. john's south—mount pearl is what gender?
CREATE TABLE table_name_3 (gender VARCHAR, riding VARCHAR)
SELECT MIN(top_10) FROM table_name_95 WHERE cuts_made = 10 AND top_5 > 1
Which Top-10 has a Cuts made of 10, and a Top-5 larger than 1?
CREATE TABLE table_name_95 (top_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR)
SELECT torque AS @rpm FROM table_name_75 WHERE model = "sl 65 amg"
What was the torque@rpm of the sl 65 amg?
CREATE TABLE table_name_75 (torque VARCHAR, model VARCHAR)
SELECT year FROM table_name_19 WHERE engine = "brm v12"
Which year has brm v12 as the engine?
CREATE TABLE table_name_19 (year VARCHAR, engine VARCHAR)
SELECT COUNT(temp__) AS °c_ FROM table_10262329_1 WHERE adhesive_type = "Acryl"
HOW MANY TEMPERATURE INTERVALS ARE POSSIBLE TO USE WITH ACRYL?
CREATE TABLE table_10262329_1 (temp__ VARCHAR, adhesive_type VARCHAR)
SELECT score FROM table_name_96 WHERE leading_scorer = "tim duncan (27)"
What score has tim duncan (27) as the leading scorer?
CREATE TABLE table_name_96 (score VARCHAR, leading_scorer VARCHAR)
SELECT pct FROM table_name_84 WHERE total_games < 944
What is the PCT when the total number of games is less than 944?
CREATE TABLE table_name_84 (pct VARCHAR, total_games INTEGER)
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla"
What is the country of origin of the artist who is female and produced a song in Bangla?
CREATE TABLE artist (country VARCHAR, artist_name VARCHAR, gender VARCHAR); CREATE TABLE song (artist_name VARCHAR, languages VARCHAR)
SELECT gt4_winner FROM table_30062172_3 WHERE round = 9 AND gt3_winner = "Charles Bateman Michael Lyons"
When charles bateman michael lyons is the gt3 winner and 9 is the round who is the gt4 winner?
CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, round VARCHAR, gt3_winner VARCHAR)
SELECT road_team FROM table_name_91 WHERE home_team = "boston" AND result = "124-101"
Which Road Team has a Home Team of boston, and a Result of 124-101?
CREATE TABLE table_name_91 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT team FROM table_name_96 WHERE year < 2007 AND class = "gts"
Which Team has a Year smaller than 2007, and a Class of gts?
CREATE TABLE table_name_96 (team VARCHAR, year VARCHAR, class VARCHAR)
SELECT AVG(rank) FROM table_name_83 WHERE country = "guam"
What is the Rank of the Guam Player?
CREATE TABLE table_name_83 (rank INTEGER, country VARCHAR)
SELECT player FROM table_name_67 WHERE college = "east" AND pick = 3
What is the Pick 3 Player from East College?
CREATE TABLE table_name_67 (player VARCHAR, college VARCHAR, pick VARCHAR)
SELECT nationality FROM table_name_10 WHERE player = "john flatters"
What is John Flatters' nationality?
CREATE TABLE table_name_10 (nationality VARCHAR, player VARCHAR)
SELECT party FROM table_1341884_45 WHERE incumbent = "Ray Roberts"
what is the political affiliation of ray roberts
CREATE TABLE table_1341884_45 (party VARCHAR, incumbent VARCHAR)
SELECT MAX(caps) FROM table_name_50 WHERE player = "glen moss"
What is the largest caps value for Glen Moss?
CREATE TABLE table_name_50 (caps INTEGER, player VARCHAR)
SELECT class FROM table_name_97 WHERE wheels = 137
What is the value for the item "Class" when the value of the item "Wheels" is 137?
CREATE TABLE table_name_97 (class VARCHAR, wheels VARCHAR)
SELECT MIN(game) FROM table_name_66 WHERE date = "march 21"
What is the lowest Game, when Date is March 21?
CREATE TABLE table_name_66 (game INTEGER, date VARCHAR)
SELECT team_2 FROM table_name_81 WHERE team_1 = "stationery stores"
Who was Team 2 when Stationery Stores was Team 1?
CREATE TABLE table_name_81 (team_2 VARCHAR, team_1 VARCHAR)
SELECT group FROM table_name_23 WHERE population = "see hoy"
What group has a Population of see hoy?
CREATE TABLE table_name_23 (group VARCHAR, population VARCHAR)
SELECT away_team AS score FROM table_name_76 WHERE home_team = "fitzroy"
When fitzroy was the home team, how much did the away team score?
CREATE TABLE table_name_76 (away_team VARCHAR, home_team VARCHAR)
SELECT home_team AS score FROM table_name_7 WHERE venue = "lake oval"
What is the Home team score for the Lake Oval Venue?
CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR)
SELECT nominee FROM table_name_86 WHERE category = "best director"
Who is the nominee for best director?
CREATE TABLE table_name_86 (nominee VARCHAR, category VARCHAR)
SELECT format FROM table_name_59 WHERE call_sign = "cjbx-fm"
What is the Format of the Frequency CJBX-FM?
CREATE TABLE table_name_59 (format VARCHAR, call_sign VARCHAR)
SELECT week_14_dec_3 FROM table_name_17 WHERE week_11_nov_12 = "michigan (7-2)"
What happened in week 14 when week 11's result was Michigan (7-2)?
CREATE TABLE table_name_17 (week_14_dec_3 VARCHAR, week_11_nov_12 VARCHAR)
SELECT venue FROM table_name_61 WHERE score = "1:3" AND team_2 = "binh duong"
What was the venue of the match where the score was 1:3 and team 2 was binh duong?
CREATE TABLE table_name_61 (venue VARCHAR, score VARCHAR, team_2 VARCHAR)
SELECT score FROM table_16864968_8 WHERE date = "March 21, 2009"
What was the score on March 21, 2009?
CREATE TABLE table_16864968_8 (score VARCHAR, date VARCHAR)
SELECT college FROM table_name_16 WHERE pick__number = 203
Pick # of 203 went to which college?
CREATE TABLE table_name_16 (college VARCHAR, pick__number VARCHAR)
SELECT australian_marquee FROM table_1301373_7 WHERE international_marquee = "Alessandro Del Piero"
Name the australian marquee for alessandro del piero
CREATE TABLE table_1301373_7 (australian_marquee VARCHAR, international_marquee VARCHAR)
SELECT team_name FROM table_name_84 WHERE schools = "cisne fairfield"
What is the name of the team from cisne fairfield school?
CREATE TABLE table_name_84 (team_name VARCHAR, schools VARCHAR)
SELECT AVG(to_par) FROM table_name_40 WHERE score = 72 - 67 - 71 - 72 = 282
What is the average To Par, when Score is "72-67-71-72=282"?
CREATE TABLE table_name_40 (to_par INTEGER, score VARCHAR)
SELECT result FROM table_name_31 WHERE year = 1948 AND date = "november 7"
What is Result, when Year is 1948, and when Date is November 7?
CREATE TABLE table_name_31 (result VARCHAR, year VARCHAR, date VARCHAR)
SELECT transfer_window FROM table_name_30 WHERE transfer_fee = "free" AND moving_to = "norwich city"
What is the Transfer window, when the Transfer fee is "free", and when the item "Moving to" is Norwich City?
CREATE TABLE table_name_30 (transfer_window VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR)
SELECT COUNT(played) FROM table_name_57 WHERE points_1 = "80" AND goals_for > 77
What is the played number with points 1 is 80, and goals for is more than 77?
CREATE TABLE table_name_57 (played VARCHAR, points_1 VARCHAR, goals_for VARCHAR)
SELECT current_stock FROM table_17839_1 WHERE avg_trips_per_mile__×1000_ = 4744
When 4744 is the avg. trips per mile (x1000) what is the current stock?
CREATE TABLE table_17839_1 (current_stock VARCHAR, avg_trips_per_mile__×1000_ VARCHAR)
SELECT no_in_series FROM table_2818164_8 WHERE directed_by = "Art Dielhenn"
the episode directed by art dielhenn was what number in the series?
CREATE TABLE table_2818164_8 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT home_team AS score FROM table_name_83 WHERE home_team = "hawthorn"
What was the home team score for the game where Hawthorn is the home team?
CREATE TABLE table_name_83 (home_team VARCHAR)
SELECT location FROM table_name_7 WHERE built < 1872 AND name = "durfee mill no. 1"
What is the location of the Durfee Mill No. 1, built before 1872 ?
CREATE TABLE table_name_7 (location VARCHAR, built VARCHAR, name VARCHAR)
SELECT f_laps FROM table_name_97 WHERE position = "3rd"
What is the F/Laps value associated with a position of 3rd?
CREATE TABLE table_name_97 (f_laps VARCHAR, position VARCHAR)
SELECT week FROM table_name_73 WHERE air_date = "august 30, 2008"
Which Week has an Air Date of august 30, 2008?
CREATE TABLE table_name_73 (week VARCHAR, air_date VARCHAR)
SELECT result FROM table_name_50 WHERE kick_off = "2007-03-06, 20:45"
WHAT WAS THE SCORE OF THE GAME WITH A 2007-03-06, 20:45 KICKOFF?
CREATE TABLE table_name_50 (result VARCHAR, kick_off VARCHAR)
SELECT MAX(against) FROM table_name_56 WHERE losses > 9 AND byes = 2 AND draws > 0
Can you tell me the highest Against that has the Losses larger than 9, and the Byes of 2, and the Draws larger than 0?
CREATE TABLE table_name_56 (against INTEGER, draws VARCHAR, losses VARCHAR, byes VARCHAR)
SELECT drawn FROM table_name_59 WHERE played = "correct as of 2006-06-10"
What is Drawn, when Played is "Correct as of 2006-06-10"?
CREATE TABLE table_name_59 (drawn VARCHAR, played VARCHAR)
SELECT last_title FROM table_2454589_1 WHERE home_city = "Cuenca"
Name the last title for cuenca
CREATE TABLE table_2454589_1 (last_title VARCHAR, home_city VARCHAR)
SELECT MAX(meas_num) FROM table_256286_39
What is the highest measure number?
CREATE TABLE table_256286_39 (meas_num INTEGER)
SELECT 1987 FROM table_name_71 WHERE 1989 = "grand slam tournaments"
What is 1987 Grand Slam Tournament if 1989 is also grand slam tournaments?
CREATE TABLE table_name_71 (Id VARCHAR)
SELECT SUM(total) FROM table_name_11 WHERE gold = 0 AND silver < 2 AND rank = "6"
What is the sum of Total for 0 gold and less than 2, silver with a rank of 6?
CREATE TABLE table_name_11 (total INTEGER, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT lost FROM table_name_55 WHERE drawn = "2" AND bonus_points = "6"
What is the number of lost games when 2 were drawn, and there were 6 bonus points?
CREATE TABLE table_name_55 (lost VARCHAR, drawn VARCHAR, bonus_points VARCHAR)
SELECT tournament FROM table_name_21 WHERE 2010 = "2r" AND 2011 = "1r"
Which Tournament has a 2010 of 2r, and a 2011 of 1r?
CREATE TABLE table_name_21 (tournament VARCHAR)
SELECT SUM(beds) FROM Rooms WHERE bedtype = 'King'
How many king beds are there?
CREATE TABLE Rooms (beds INTEGER, bedtype VARCHAR)
SELECT date FROM table_name_94 WHERE week < 9 AND result = "l 27-10"
What is the date where the result was L 27-10 in a week before week 9?
CREATE TABLE table_name_94 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT MIN(money___) AS $__ FROM table_name_75 WHERE place = "t8" AND to_par > 19
What is the lowest money ($) that has t8 as the place, with a to par greater than 19?
CREATE TABLE table_name_75 (money___ INTEGER, place VARCHAR, to_par VARCHAR)
SELECT jockey FROM table_30098144_2 WHERE race = "Doncaster Handicap"
List the rider for the doncaster handicap compeition.
CREATE TABLE table_30098144_2 (jockey VARCHAR, race VARCHAR)
SELECT T1.id, T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id
For each trip, return its ending station's installation date.
CREATE TABLE station (installation_date VARCHAR, id VARCHAR); CREATE TABLE trip (id VARCHAR, end_station_id VARCHAR)
SELECT opera FROM table_name_48 WHERE firefox = "19.87%"
What opera has 19.87% as the firefox?
CREATE TABLE table_name_48 (opera VARCHAR, firefox VARCHAR)
SELECT high_assists FROM table_17323092_7 WHERE team = "@ Minnesota"
Who had the high assists when the team was @ Minnesota?
CREATE TABLE table_17323092_7 (high_assists VARCHAR, team VARCHAR)
SELECT date FROM table_name_64 WHERE course = "jaén to córdoba"
What is the race date for the course Jaén to Córdoba?
CREATE TABLE table_name_64 (date VARCHAR, course VARCHAR)
SELECT drivers FROM table_name_88 WHERE chassis = "season cancelled"
Name the drivers for chassis of season cancelled
CREATE TABLE table_name_88 (drivers VARCHAR, chassis VARCHAR)
SELECT home FROM table_name_74 WHERE date = "february 4"
What is the home team of the game on February 4?
CREATE TABLE table_name_74 (home VARCHAR, date VARCHAR)
SELECT SUM(tonnage__grt_) FROM table_name_35 WHERE fate = "damaged"
How much tonnage was damaged?
CREATE TABLE table_name_35 (tonnage__grt_ INTEGER, fate VARCHAR)
SELECT catalogue FROM table_name_51 WHERE track = 27
What cataglogue has 27 tracks?
CREATE TABLE table_name_51 (catalogue VARCHAR, track VARCHAR)
SELECT res FROM table_name_57 WHERE opponent = "nate mohr"
What was the result of the event against Nate Mohr?
CREATE TABLE table_name_57 (res VARCHAR, opponent VARCHAR)
SELECT place FROM table_name_78 WHERE player = "steve lowery"
What is Steve Lowery's Place?
CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR)
SELECT MIN(inhabitants_per_km²) FROM table_16278673_1 WHERE markatal = 49
Name the minimum inhabitants for markatal 49
CREATE TABLE table_16278673_1 (inhabitants_per_km² INTEGER, markatal VARCHAR)
SELECT COUNT(poles) FROM table_name_27 WHERE position = "6th" AND points < 164
What is the total number of Poles, when Position is 6th, and when Points is less than 164?
CREATE TABLE table_name_27 (poles VARCHAR, position VARCHAR, points VARCHAR)
SELECT game FROM table_name_76 WHERE road_team = "seattle" AND date = "may 24"
What is the Game on May 24 with Road Team Seattle?
CREATE TABLE table_name_76 (game VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT COUNT(area__km²_) FROM table_28367242_1 WHERE name = "Armstrong"
How many Area's are there for Armstrong?
CREATE TABLE table_28367242_1 (area__km²_ VARCHAR, name VARCHAR)
SELECT round FROM table_20860739_1 WHERE height = "6'5"
How many rounds were there a height of 6'5?
CREATE TABLE table_20860739_1 (round VARCHAR, height VARCHAR)
SELECT area__km²_ FROM table_14325808_1 WHERE density__pop_km²_ = "137.61"
What is the area in kilometers squared the population density is 137.61?
CREATE TABLE table_14325808_1 (area__km²_ VARCHAR, density__pop_km²_ VARCHAR)
SELECT margin_of_victory FROM table_name_8 WHERE tournament = "gna/glendale federal classic"
What is the margin of victory of the gna/glendale federal classic?
CREATE TABLE table_name_8 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT format FROM table_name_94 WHERE call_sign = "cite-fm-1"
What is the format for the one which has a call sign of cite-fm-1?
CREATE TABLE table_name_94 (format VARCHAR, call_sign VARCHAR)
SELECT MAX(year) FROM table_name_63 WHERE game = "call of duty 4: modern warfare"
What is the latest year when Call of Duty 4: Modern Warfare was the game?
CREATE TABLE table_name_63 (year INTEGER, game VARCHAR)
SELECT date FROM table_name_60 WHERE week < 3 AND result = "w 24-13"
On what date was the week less than 3 with a result of w 24-13?
CREATE TABLE table_name_60 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT COUNT(record) FROM table_22815265_1 WHERE opponent = "Utah"
How many records show Utah as the opponent?
CREATE TABLE table_22815265_1 (record VARCHAR, opponent VARCHAR)
SELECT COUNT(lane) FROM table_name_75 WHERE country = "austria"
What is the total number of lanes used for races with winners from Austria?
CREATE TABLE table_name_75 (lane VARCHAR, country VARCHAR)
SELECT MAX(losses) FROM table_name_61 WHERE team = "presidente hayes" AND draws > 4
What is the highest number of losses for Presidente Hayes, when the draws were more than 4?
CREATE TABLE table_name_61 (losses INTEGER, team VARCHAR, draws VARCHAR)
SELECT envelopment FROM table_name_83 WHERE family = "rhabdoviridae"
What is the envelopment for the rhabdoviridae family?
CREATE TABLE table_name_83 (envelopment VARCHAR, family VARCHAR)
SELECT drawn FROM table_name_19 WHERE tries_for = "51"
What was the amount of draws where a club had 51 tries for?
CREATE TABLE table_name_19 (drawn VARCHAR, tries_for VARCHAR)
SELECT loa__metres_ FROM table_25595107_1 WHERE skipper = "Jez Fanstone"
What were the LOA (metres) for the yacht where the skipper was Jez Fanstone?
CREATE TABLE table_25595107_1 (loa__metres_ VARCHAR, skipper VARCHAR)
SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70
Find all the zip codes in which the max dew point have never reached 70.
CREATE TABLE weather (zip_code VARCHAR, max_dew_point_f VARCHAR)
SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = "g10"
What is the bts retail price (regulated) for tariff code g10?
CREATE TABLE table_10408617_5 (bts_retail_price__regulated_ VARCHAR, tariff_code VARCHAR)
SELECT venue FROM table_name_46 WHERE result = "4-2"
Where did the competition take place that had a 4-2 result?
CREATE TABLE table_name_46 (venue VARCHAR, result VARCHAR)
SELECT perth FROM table_name_51 WHERE gold_coast = "yes" AND adelaide = "yes" AND auckland = "no"
Which Perth's gold coast and Adelaide were yes when Auckland was no?
CREATE TABLE table_name_51 (perth VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT dissolved FROM table_name_31 WHERE assembled = "3 june 1467"
What is the dissolved date of the parliament assembled on 3 June 1467?
CREATE TABLE table_name_31 (dissolved VARCHAR, assembled VARCHAR)
SELECT AVG(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Provisional"
Show the average room count of the apartments that have booking status code "Provisional".
CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR)
SELECT score FROM table_23248910_9 WHERE record = "46-25"
What is every score with a record of 46-25?
CREATE TABLE table_23248910_9 (score VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_43 WHERE attendance = "unknown" AND result = "lost 2-0"
Which opponent has unknown attendance, and lost 2-0?
CREATE TABLE table_name_43 (opponent VARCHAR, attendance VARCHAR, result VARCHAR)
SELECT date FROM table_name_59 WHERE opponents_in_the_final = "maria-fernanda alves stéphanie dubois"
What is Date, when Opponents In The Final, is Maria-Fernanda Alves Stéphanie Dubois?
CREATE TABLE table_name_59 (date VARCHAR, opponents_in_the_final VARCHAR)
SELECT constructor FROM table_name_54 WHERE rounds = "8" AND chassis = "156 158 1512"
What is the constructor on the team with 8 rounds and a chassis of 156 158 1512?
CREATE TABLE table_name_54 (constructor VARCHAR, rounds VARCHAR, chassis VARCHAR)
SELECT AVG(lane) FROM table_name_57 WHERE nationality = "belarus"
What is the average Lane where Belarus is the nationality?
CREATE TABLE table_name_57 (lane INTEGER, nationality VARCHAR)
SELECT points FROM table_16729457_18 WHERE equipment = "KTM-VMC"
What are the points for ktm-vmc equipment?
CREATE TABLE table_16729457_18 (points VARCHAR, equipment VARCHAR)
SELECT high_rebounds FROM table_19778010_5 WHERE high_assists = "Five Players (3)"
Who did the high rebounds in the game in which five players (3) did the high assists?
CREATE TABLE table_19778010_5 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT AVG(num_of_staff) FROM museum WHERE open_year < 2009
Find the average number of staff working for the museums that were open before 2009.
CREATE TABLE museum (num_of_staff INTEGER, open_year INTEGER)
SELECT plural FROM table_name_47 WHERE singular = "nyaqot"
What is the plural if the singular is nyaqot?
CREATE TABLE table_name_47 (plural VARCHAR, singular VARCHAR)
SELECT MAX(position) FROM table_name_48 WHERE played < 42
What is the highest position for less than 42 played?
CREATE TABLE table_name_48 (position INTEGER, played INTEGER)