answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT asset_make, asset_model, asset_details FROM Assets ORDER BY asset_disposed_date
List the all the assets make, model, details by the disposed date ascendingly.
CREATE TABLE Assets (asset_make VARCHAR, asset_model VARCHAR, asset_details VARCHAR, asset_disposed_date VARCHAR)
SELECT SUM(prom__m_) FROM table_name_72 WHERE peak = "great knoutberry hill"
What is the total of Prom in M for Peak great knoutberry hill?
CREATE TABLE table_name_72 (prom__m_ INTEGER, peak VARCHAR)
SELECT rookie FROM table_14132239_3 WHERE transition = "Brodie Merrill" AND offensive = "Pat Maddalena"
Who won the rookie award the week the transition award was given to Brodie Merrill and the offensive award was given to Pat Maddalena?
CREATE TABLE table_14132239_3 (rookie VARCHAR, transition VARCHAR, offensive VARCHAR)
SELECT safari FROM table_1876262_10 WHERE internet_explorer = "47.22%"
If Internet Explorer is 47.22%, what is the Safari total?
CREATE TABLE table_1876262_10 (safari VARCHAR, internet_explorer VARCHAR)
SELECT MIN(stage) FROM table_15088557_1 WHERE winner = "Sergei Smetanine"
What is the minimum stage where Sergei Smetanine won?
CREATE TABLE table_15088557_1 (stage INTEGER, winner VARCHAR)
SELECT constructor FROM table_name_62 WHERE laps < 68 AND grid > 20 AND driver = "thierry boutsen"
who is the constructor when the laps is less than 68, the grid is more than 20 and the driver is thierry boutsen?
CREATE TABLE table_name_62 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC
Please show different denominations and the corresponding number of schools in descending order.
CREATE TABLE school (Denomination VARCHAR)
SELECT partner FROM table_name_52 WHERE surface = "grass"
Who was the partner that played a match on a grass court?
CREATE TABLE table_name_52 (partner VARCHAR, surface VARCHAR)
SELECT MAX(t1.low_temperature), AVG(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = "Amersham"
Give me the maximum low temperature and average precipitation at the Amersham station.
CREATE TABLE weekly_weather (low_temperature INTEGER, precipitation INTEGER, station_id VARCHAR); CREATE TABLE station (id VARCHAR, network_name VARCHAR)
SELECT part_2 FROM table_name_4 WHERE class = "6"
What is the Part 2 when the class is 6?
CREATE TABLE table_name_4 (part_2 VARCHAR, class VARCHAR)
SELECT pairing FROM table_name_68 WHERE binomial = "θ(1)"
Binomial of θ(1) has what pairing?
CREATE TABLE table_name_68 (pairing VARCHAR, binomial VARCHAR)
SELECT score FROM table_name_1 WHERE place = "t4" AND player = "scott hoch"
What is Score, when Place is "T4", and when Player is "Scott Hoch"?
CREATE TABLE table_name_1 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT high_assists FROM table_18813011_6 WHERE record = "13-11"
Who had the high assist in the game where the record is 13-11?
CREATE TABLE table_18813011_6 (high_assists VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_75 WHERE round = "first"
Round of first had what opponent?
CREATE TABLE table_name_75 (opponent VARCHAR, round VARCHAR)
SELECT place FROM table_name_2 WHERE score = 71 AND country = "united states" AND player = "jim thorpe"
When Jim Thorpe of United States has a score of 71, what is the place?
CREATE TABLE table_name_2 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_12 WHERE score = 75 - 71 - 75 - 72 = 293
What is the monetary sum with a score of 75-71-75-72=293?
CREATE TABLE table_name_12 (money___ INTEGER, score VARCHAR)
SELECT AVG(population) FROM table_name_17 WHERE area__km_2__ < 433.7 AND code = 23013
What is the average population for an area less than 433.7km and a 23013 code?
CREATE TABLE table_name_17 (population INTEGER, area__km_2__ VARCHAR, code VARCHAR)
SELECT conf_record FROM table_16295365_1 WHERE conference = "Sun Belt"
For teams in the Sun Belt conference, what is the conference record?
CREATE TABLE table_16295365_1 (conf_record VARCHAR, conference VARCHAR)
SELECT MIN(draft) FROM table_name_74 WHERE player = "dave christian category:articles with hcards"
What is the lowest Draft, when Player is "Dave Christian Category:Articles with hCards"?
CREATE TABLE table_name_74 (draft INTEGER, player VARCHAR)
SELECT country FROM table_name_45 WHERE player = "dave barr"
What country has Dave Barr as a player?
CREATE TABLE table_name_45 (country VARCHAR, player VARCHAR)
SELECT MAX(bronze) FROM table_name_5 WHERE total < 22 AND silver < 5
What is the most Bronze medals won among the participants that won less than 22 medals overall and less than 5 silver medals?
CREATE TABLE table_name_5 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "fitzroy"
What is the smallest crowd size for away team Fitzroy?
CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR)
SELECT name___generation FROM table_name_90 WHERE architecture_version = "mips-iii 64-bit" AND model = "2b"
What is the name of the architecture version of the MIPS-III 64-bit, and model 2b?
CREATE TABLE table_name_90 (name___generation VARCHAR, architecture_version VARCHAR, model VARCHAR)
SELECT MAX(co_champions) FROM table_name_51 WHERE pct < 0.786 AND mrc_championships = 6 AND records = "88-45-6"
What is the highest value for co-champions when the PCT is less than 0.786 and MRC championships is 6 with records of 88-45-6?
CREATE TABLE table_name_51 (co_champions INTEGER, records VARCHAR, pct VARCHAR, mrc_championships VARCHAR)
SELECT townland FROM table_30120633_1 WHERE area__acres__ = 213
Which townland has a 213 acre area?
CREATE TABLE table_30120633_1 (townland VARCHAR, area__acres__ VARCHAR)
SELECT match_points FROM table_27987767_2 WHERE losers = "Rotherham"
how many match points rotherham lose
CREATE TABLE table_27987767_2 (match_points VARCHAR, losers VARCHAR)
SELECT year_opened FROM table_name_57 WHERE coaster_name = "le monstre"
Which year opened has le monstre coaster?
CREATE TABLE table_name_57 (year_opened VARCHAR, coaster_name VARCHAR)
SELECT previous_experience FROM table_14342367_13 WHERE hometown = "East Jordan, Michigan"
What is the previous experience of the player from East Jordan, Michigan?
CREATE TABLE table_14342367_13 (previous_experience VARCHAR, hometown VARCHAR)
SELECT home_team FROM table_name_97 WHERE away_team = "carlton"
Who was the home team when Carlton was the away team?
CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(no) FROM table_1590652_4 WHERE date = "30 May 2010"
Name the total number when date is 30 may 2010
CREATE TABLE table_1590652_4 (no VARCHAR, date VARCHAR)
SELECT date FROM table_13023925_2 WHERE week = 14
What was the date of the game in week 14?
CREATE TABLE table_13023925_2 (date VARCHAR, week VARCHAR)
SELECT week FROM table_name_79 WHERE result = "w 23–6"
Which week has a Result of w 23–6?
CREATE TABLE table_name_79 (week VARCHAR, result VARCHAR)
SELECT bronze FROM table_name_66 WHERE rank = "37"
Which bronze has a Rank of 37?
CREATE TABLE table_name_66 (bronze VARCHAR, rank VARCHAR)
SELECT COUNT(*) FROM (SELECT city FROM airports GROUP BY city HAVING COUNT(*) > 3)
How many cities are there that have more than 3 airports?
CREATE TABLE airports (city VARCHAR)
SELECT type FROM table_name_7 WHERE name = "song"
What type has song as the name?
CREATE TABLE table_name_7 (type VARCHAR, name VARCHAR)
SELECT high_assists FROM table_23248869_8 WHERE score = "L 85–118 (OT)"
Who had the high assists when the score was l 85–118 (ot)
CREATE TABLE table_23248869_8 (high_assists VARCHAR, score VARCHAR)
SELECT team FROM table_name_25 WHERE game = 59
What is Team, when Game is "59"?
CREATE TABLE table_name_25 (team VARCHAR, game VARCHAR)
SELECT venue FROM table_name_82 WHERE date = "23,24,26,27,28,29 feb, 1 mar 1912"
What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
CREATE TABLE table_name_82 (venue VARCHAR, date VARCHAR)
SELECT italian FROM table_name_59 WHERE mexican = "frijol"
What is the Italian word for the Mexican word frijol?
CREATE TABLE table_name_59 (italian VARCHAR, mexican VARCHAR)
SELECT runner_s__up FROM table_name_64 WHERE date = "jul 14, 1968"
Who was the runner-up on Jul 14, 1968?
CREATE TABLE table_name_64 (runner_s__up VARCHAR, date VARCHAR)
SELECT venue FROM table_name_30 WHERE semi_final_heat_host = "david jacobs"
What was the venue when David Jacobs was the host?
CREATE TABLE table_name_30 (venue VARCHAR, semi_final_heat_host VARCHAR)
SELECT club FROM table_name_25 WHERE goals_against > 46 AND wins = 10 AND goal_difference = -24
Which club has more than 46 goals, 10 wins, and a goal difference of -24?
CREATE TABLE table_name_25 (club VARCHAR, goal_difference VARCHAR, goals_against VARCHAR, wins VARCHAR)
SELECT original_airdate FROM table_26866519_1 WHERE season__number = 20
What are the original air date(s) for season episode 20?
CREATE TABLE table_26866519_1 (original_airdate VARCHAR, season__number VARCHAR)
SELECT location_attendance FROM table_name_52 WHERE date = "february 25"
What is the location attendance of the game on February 25?
CREATE TABLE table_name_52 (location_attendance VARCHAR, date VARCHAR)
SELECT adelaide FROM table_name_20 WHERE melbourne = "yes" AND auckland = "no" AND perth = "yes"
Which Adelaide's Melbourne and Perth were yes when Auckland was no?
CREATE TABLE table_name_20 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR)
SELECT distance FROM table_name_38 WHERE stages = "16" AND year = "1997"
How long was the 16 staged event in 1997?
CREATE TABLE table_name_38 (distance VARCHAR, stages VARCHAR, year VARCHAR)
SELECT MIN(opening) FROM table_10601843_2 WHERE tenant = "Bursaspor"
When did the stadium where Bursaspor is the tenant open?
CREATE TABLE table_10601843_2 (opening INTEGER, tenant VARCHAR)
SELECT roll FROM table_name_66 WHERE decile > 6 AND name = "summerland primary"
What's the roll for summerland primary when decile is over 6?
CREATE TABLE table_name_66 (roll VARCHAR, decile VARCHAR, name VARCHAR)
SELECT l3_cache FROM table_24538587_13 WHERE brand_name__list_ = "Core i7-2xxxQE, i7-26xxQM, i7-27xxQM"
Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm
CREATE TABLE table_24538587_13 (l3_cache VARCHAR, brand_name__list_ VARCHAR)
SELECT date FROM table_name_11 WHERE home_team = "millwall"
When was millwall the home team?
CREATE TABLE table_name_11 (date VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_61 WHERE opponent = "dodgers" AND date = "april 21"
Name the score when the opponent was the dodgers on april 21
CREATE TABLE table_name_61 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT team_1 FROM table_name_21 WHERE team_2 = "tours fc (d2)"
Which team 1 played against team 2 of Tours FC (D2)?
CREATE TABLE table_name_21 (team_1 VARCHAR, team_2 VARCHAR)
SELECT date FROM table_name_24 WHERE result = "eng by 23 runs"
Name the date for result of eng by 23 runs
CREATE TABLE table_name_24 (date VARCHAR, result VARCHAR)
SELECT MIN(stolen_ends) FROM table_1475840_1 WHERE locale = Alberta
What is the minimum stolen ends for the locale Alberta?
CREATE TABLE table_1475840_1 (stolen_ends INTEGER, locale VARCHAR, Alberta VARCHAR)
SELECT opponent FROM table_name_71 WHERE round = 2
Who was the opponent in which the bout ended in round 2?
CREATE TABLE table_name_71 (opponent VARCHAR, round VARCHAR)
SELECT points FROM table_name_15 WHERE date = "february 10"
What were the points on February 10?
CREATE TABLE table_name_15 (points VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_7 WHERE away_team = "york city"
What was the date of the game that was played against the away team of York City?
CREATE TABLE table_name_7 (attendance VARCHAR, away_team VARCHAR)
SELECT score_points FROM table_name_32 WHERE total = "11"
With a total of 11, what is the score points?
CREATE TABLE table_name_32 (score_points VARCHAR, total VARCHAR)
SELECT venue FROM table_name_7 WHERE home_team = "geelong"
Where does Geelong play their home game?
CREATE TABLE table_name_7 (venue VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_74 WHERE home = "cleveland" AND record = "20-8"
What is the date of the Cleveland home game with a 20-8 record?
CREATE TABLE table_name_74 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT date FROM table_name_86 WHERE venue = "tokyo"
When was the date of an event at Tokyo venue?
CREATE TABLE table_name_86 (date VARCHAR, venue VARCHAR)
SELECT male FROM table_name_26 WHERE female = "amy winehouse"
Who is the male partner for amy winehouse?
CREATE TABLE table_name_26 (male VARCHAR, female VARCHAR)
SELECT directed_by FROM table_11630008_5 WHERE written_by = "Lamont Ferrell"
Who directed the episode written by Lamont Ferrell?
CREATE TABLE table_11630008_5 (directed_by VARCHAR, written_by VARCHAR)
SELECT title FROM table_name_62 WHERE director = "pen-ek ratanaruang"
What film did Pen-Ek Ratanaruang direct?
CREATE TABLE table_name_62 (title VARCHAR, director VARCHAR)
SELECT reign FROM table_name_25 WHERE date_of_birth = "22 march 1459"
What was the Reign of the person whose Date of Birth was 22 March 1459?
CREATE TABLE table_name_25 (reign VARCHAR, date_of_birth VARCHAR)
SELECT netflix FROM table_15187735_12 WHERE segment_d = "Pressure Gauges"
What is the Netflix where Segment D is pressure gauges ?
CREATE TABLE table_15187735_12 (netflix VARCHAR, segment_d VARCHAR)
SELECT MIN(district) FROM table_13833770_3 WHERE incumbent = "Tom Reynolds"
what is the minimum district with incumbent being tom reynolds
CREATE TABLE table_13833770_3 (district INTEGER, incumbent VARCHAR)
SELECT COUNT(*), crs_code FROM CLASS GROUP BY crs_code
How many sections does each course has?
CREATE TABLE CLASS (crs_code VARCHAR)
SELECT artist FROM table_name_32 WHERE language = "croatian"
Which artist speaks croatian?
CREATE TABLE table_name_32 (artist VARCHAR, language VARCHAR)
SELECT away FROM table_name_49 WHERE home = "deportes savio"
What team was the away team when the Deportes Savio was the home team?
CREATE TABLE table_name_49 (away VARCHAR, home VARCHAR)
SELECT network FROM table_name_25 WHERE year = 2011
What's the network in 2011?
CREATE TABLE table_name_25 (network VARCHAR, year VARCHAR)
SELECT position FROM table_26996293_7 WHERE player = "Bill Simmons"
What is the position of the player bill simmons?
CREATE TABLE table_26996293_7 (position VARCHAR, player VARCHAR)
SELECT road_team FROM table_name_56 WHERE home_team = "philadelphia" AND game = "game 6"
What is the road team of game 6 with Philadelphia as the home team?
CREATE TABLE table_name_56 (road_team VARCHAR, home_team VARCHAR, game VARCHAR)
SELECT team_2 FROM table_name_48 WHERE team_1 = "barcelona"
Which Team 2 faced Team 1 from Barcelona?
CREATE TABLE table_name_48 (team_2 VARCHAR, team_1 VARCHAR)
SELECT date FROM table_name_90 WHERE venue = "windy hill"
When was Windy Hill used as a venue?
CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
SELECT completed FROM table_name_25 WHERE name = "satsuki dd-27"
When was satsuki dd-27 completed?
CREATE TABLE table_name_25 (completed VARCHAR, name VARCHAR)
SELECT year FROM table_name_28 WHERE total_matches = 5
WHAT YEAR HAD 5 TOTAL MATCHES?
CREATE TABLE table_name_28 (year VARCHAR, total_matches VARCHAR)
SELECT call_sign FROM table_name_65 WHERE erp_w = 27
Name the call sign for ERP W of 27
CREATE TABLE table_name_65 (call_sign VARCHAR, erp_w VARCHAR)
SELECT MAX(year) FROM table_name_54 WHERE points < 0
What is the latest year with less than 0 points?
CREATE TABLE table_name_54 (year INTEGER, points INTEGER)
SELECT high_school FROM table_22058547_1 WHERE mascot = "Storm"
How many high schools have storm mascots?
CREATE TABLE table_22058547_1 (high_school VARCHAR, mascot VARCHAR)
SELECT score FROM table_name_14 WHERE home = "olimpia"
What is the score of the home team olimpia?
CREATE TABLE table_name_14 (score VARCHAR, home VARCHAR)
SELECT president FROM table_name_37 WHERE head_coach = "mark wakeling"
Who is the President of the team that has the Head Coach Mark Wakeling?
CREATE TABLE table_name_37 (president VARCHAR, head_coach VARCHAR)
SELECT year FROM table_name_85 WHERE result = "7th"
What year did anna thompson have a 7th place result?
CREATE TABLE table_name_85 (year VARCHAR, result VARCHAR)
SELECT air_date FROM table_25816476_2 WHERE team_guest_captain = "John Bishop"
What was the air date when the team guest captain was john bishop?
CREATE TABLE table_25816476_2 (air_date VARCHAR, team_guest_captain VARCHAR)
SELECT island FROM table_name_20 WHERE population = "9,520 (2000)"
Which island has a population of 9,520 (2000)?
CREATE TABLE table_name_20 (island VARCHAR, population VARCHAR)
SELECT first_appearance FROM table_name_26 WHERE portrayed_by = "chad williams"
What is the name of the first appearance when Chad Williams is a portrayal?
CREATE TABLE table_name_26 (first_appearance VARCHAR, portrayed_by VARCHAR)
SELECT couple FROM table_19744915_14 WHERE average = "15.9"
What is the couples name where the average is 15.9?
CREATE TABLE table_19744915_14 (couple VARCHAR, average VARCHAR)
SELECT release_date FROM table_name_48 WHERE l2_cache = "2x 512 kb" AND multi_1 = "11x" AND fpu_width = "128-bit"
What is the release date of the 2x 512 kb L2 cache with a 11x multi 1, and a FPU width of 128-bit?
CREATE TABLE table_name_48 (release_date VARCHAR, fpu_width VARCHAR, l2_cache VARCHAR, multi_1 VARCHAR)
SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID WHERE t2.Price_in_Dollar < (SELECT MAX(Price_in_Dollar) FROM furniture_manufacte)
Find the names of furnitures whose prices are lower than the highest price.
CREATE TABLE furniture_manufacte (Furniture_ID VARCHAR, Price_in_Dollar INTEGER); CREATE TABLE furniture (name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Price_in_Dollar INTEGER)
SELECT team_1 FROM table_name_77 WHERE team_2 = "jac port-gentil"
What is Team 1 when Team 2 is Jac Port-Gentil?
CREATE TABLE table_name_77 (team_1 VARCHAR, team_2 VARCHAR)
SELECT SUM(game) FROM table_name_49 WHERE opponent = "@ hartford whalers" AND february > 19
What is the total of Game with an Opponent of @ Hartford Whalers and February that's larger than 19?
CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR)
SELECT COUNT AS № FROM table_27905664_1 WHERE us_viewers__million_ = "4.26"
How many episode numbers had US viewership of 4.26 million?
CREATE TABLE table_27905664_1 (COUNT VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = "5.35"
How many of the writers had 5.35 viewers?
CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT un_region FROM table_16278349_1 WHERE population = 378000
Name the un region for 378000 population
CREATE TABLE table_16278349_1 (un_region VARCHAR, population VARCHAR)
SELECT COUNT(round) FROM table_name_29 WHERE time = "5:36"
What is the total number of rounds at 5:36?
CREATE TABLE table_name_29 (round VARCHAR, time VARCHAR)
SELECT COUNT(game) FROM table_name_1 WHERE date = "wed. nov. 13"
Date of wed. nov. 13 had how many number of games?
CREATE TABLE table_name_1 (game VARCHAR, date VARCHAR)
SELECT COUNT(rnd) FROM table_10725629_2 WHERE race_name = "Bosch Spark Plug Grand Prix"
How many rounds were there of the Bosch Spark Plug Grand Prix?
CREATE TABLE table_10725629_2 (rnd VARCHAR, race_name VARCHAR)
SELECT COUNT(batting_partners) FROM table_1670921_2 WHERE season = "2006"
How many total batting partners were most successful in the 2006 season?
CREATE TABLE table_1670921_2 (batting_partners VARCHAR, season VARCHAR)
SELECT MAX(rank) FROM table_name_64 WHERE rider = "peter symes"
What is the highest rank for Peter Symes?
CREATE TABLE table_name_64 (rank INTEGER, rider VARCHAR)
SELECT COUNT(object_date) FROM table_29635868_1 WHERE origin = "Samoa"
How many object dates have origin in Samoa?
CREATE TABLE table_29635868_1 (object_date VARCHAR, origin VARCHAR)