answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT result FROM table_name_49 WHERE competition = "2006 world cup qualification"
what is the result of the competition in 2006 world cup qualification?
CREATE TABLE table_name_49 (result VARCHAR, competition VARCHAR)
SELECT MAX(crowd) FROM table_name_75 WHERE venue = "brunswick street oval"
What was the largest crowd at the Brunswick Street Oval?
CREATE TABLE table_name_75 (crowd INTEGER, venue VARCHAR)
SELECT MIN(roll) FROM table_name_37 WHERE name = "katikati college"
What is the lowest roll number of Katikati college?
CREATE TABLE table_name_37 (roll INTEGER, name VARCHAR)
SELECT air_dates FROM table_27487310_5 WHERE network = "ABS-CBN"
What are the air dates of the show in ABS-CBN?
CREATE TABLE table_27487310_5 (air_dates VARCHAR, network VARCHAR)
SELECT writer_s_ FROM table_name_27 WHERE catalogue = "lsp 2231" AND track < 17
On songs with track numbers smaller than number 17 and catalogues of LSP 2231, who are the writer(s)?
CREATE TABLE table_name_27 (writer_s_ VARCHAR, catalogue VARCHAR, track VARCHAR)
SELECT winner FROM table_name_8 WHERE event = "ept german open"
The EPT German open was won by which listed winner?
CREATE TABLE table_name_8 (winner VARCHAR, event VARCHAR)
SELECT release_date FROM table_name_77 WHERE production_num = "6998"
What release date has 6998 as the production num.?
CREATE TABLE table_name_77 (release_date VARCHAR, production_num VARCHAR)
SELECT COUNT(*) FROM matches
Find the total number of matches.
CREATE TABLE matches (Id VARCHAR)
SELECT player FROM table_name_16 WHERE position = "guard" AND years_in_toronto = "2007-08"
Which Player's Position is guard and played in Toronto during the Years 2007-08?
CREATE TABLE table_name_16 (player VARCHAR, position VARCHAR, years_in_toronto VARCHAR)
SELECT time FROM table_name_81 WHERE opponent = "white sox" AND record = "63-70"
At what time was the game when they played the White Sox and had a record of 63-70?
CREATE TABLE table_name_81 (time VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT location FROM table_name_99 WHERE ref_number = 44
What is the location of the mill with a reference number of 44?
CREATE TABLE table_name_99 (location VARCHAR, ref_number VARCHAR)
SELECT MIN(lost) FROM table_name_9 WHERE goals_against = 111
What are the lowest lost has 111 as the goals against?
CREATE TABLE table_name_9 (lost INTEGER, goals_against VARCHAR)
SELECT call_sign FROM table_name_13 WHERE erp_w > 197
What call sign has ERP W greater than 197?
CREATE TABLE table_name_13 (call_sign VARCHAR, erp_w INTEGER)
SELECT swimsuit FROM table_17521433_1 WHERE country = "Illinois"
What was the swimsuit score for Illinois?
CREATE TABLE table_17521433_1 (swimsuit VARCHAR, country VARCHAR)
SELECT date FROM table_name_80 WHERE attendance = "38,062"
What is the date of the game with 38,062 people in attendance?
CREATE TABLE table_name_80 (date VARCHAR, attendance VARCHAR)
SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE
List each language and the number of TV Channels using it.
CREATE TABLE TV_Channel (LANGUAGE VARCHAR)
SELECT AVG(overall) FROM table_name_56 WHERE name = "mark fischer"
WHAT IS THE AVERAGE OVERALL, FOR MARK FISCHER?
CREATE TABLE table_name_56 (overall INTEGER, name VARCHAR)
SELECT result FROM table_name_43 WHERE date = "september 10, 2008"
what is the result on september 10, 2008?
CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)
SELECT award_ceremony FROM table_name_2 WHERE role = "glinda" AND year = 2009
Which Award Ceremony in 2009 has a Role of Glinda?
CREATE TABLE table_name_2 (award_ceremony VARCHAR, role VARCHAR, year VARCHAR)
SELECT player FROM table_name_83 WHERE wins = 14
What player has 14 wins?
CREATE TABLE table_name_83 (player VARCHAR, wins VARCHAR)
SELECT player FROM table_name_57 WHERE to_par = "+10"
Which player finished at +10?
CREATE TABLE table_name_57 (player VARCHAR, to_par VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_46 WHERE cyrillic_name_other_names = "Војводинци (Romanian: Voivodinţ)"
What was the dominant religion in 2002 of the settlement with the cyrillic and other name of војводинци (romanian: voivodinţ)?
CREATE TABLE table_2562572_46 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT date FROM table_name_26 WHERE attendance > 875 AND home = "platense"
What was date was the attendance larger than 875 against Platense?
CREATE TABLE table_name_26 (date VARCHAR, attendance VARCHAR, home VARCHAR)
SELECT 1998 FROM table_name_86 WHERE 1994 = "grand slam tournaments"
What is 1998, when 1994 is Grand Slam Tournaments?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT country FROM table_name_18 WHERE location = "trestles"
What country was the game played in when the location was trestles?
CREATE TABLE table_name_18 (country VARCHAR, location VARCHAR)
SELECT owner FROM table_18536769_1 WHERE branding = "Classic Hits 102.1 CJCY"
When classic hits 102.1 cjcy is the branding who is the owner?
CREATE TABLE table_18536769_1 (owner VARCHAR, branding VARCHAR)
SELECT engine FROM table_name_79 WHERE team = "machinists union racing"
What is the engine for the Machinists Union Racing team?
CREATE TABLE table_name_79 (engine VARCHAR, team VARCHAR)
SELECT COUNT(rank) FROM table_name_38 WHERE silver > 2 AND bronze < 2
How many teams won more than 2 silver medals and fewer than 2 Bronze medals?
CREATE TABLE table_name_38 (rank VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT audition_city FROM table_28793672_1 WHERE venue = "UPI Convention Center"
Where is the audition city when the venue is upi convention center?
CREATE TABLE table_28793672_1 (audition_city VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_64 WHERE home_team = "south melbourne"
When the home team was South Melbourne, what did the away team score?
CREATE TABLE table_name_64 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(top_10) FROM table_name_86 WHERE winnings = "$405,300" AND avg_start < 30
Which Top 10 is the lowest one that has Winnings of $405,300, and an Avg Start smaller than 30?
CREATE TABLE table_name_86 (top_10 INTEGER, winnings VARCHAR, avg_start VARCHAR)
SELECT home_team AS score FROM table_name_78 WHERE home_team = "essendon"
What did the home team of essendon score?
CREATE TABLE table_name_78 (home_team VARCHAR)
SELECT away_team FROM table_name_67 WHERE home_team = "tottenham hotspur"
What away team has tottenham hotspur as the home team?
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
SELECT opponents FROM table_name_12 WHERE venue = "domnarvsvallen"
When the game was played at Domnarvsvallen who were the opponents?
CREATE TABLE table_name_12 (opponents VARCHAR, venue VARCHAR)
SELECT date FROM table_15780049_8 WHERE team = "Sacramento"
Name the date for sacramento
CREATE TABLE table_15780049_8 (date VARCHAR, team VARCHAR)
SELECT not_outs FROM table_name_41 WHERE runs > 327 AND innings > 24 AND average = 29.54
What is the number of Not Outs when there were more than 327 runs and 24 innings, and an average of 29.54
CREATE TABLE table_name_41 (not_outs VARCHAR, average VARCHAR, runs VARCHAR, innings VARCHAR)
SELECT score FROM table_name_56 WHERE game < 66
What was the score at the game earlier than 66?
CREATE TABLE table_name_56 (score VARCHAR, game INTEGER)
SELECT home_captain FROM table_name_55 WHERE result = "aus by 32 runs"
What is the name of the home captain when the result was Aus by 32 runs?
CREATE TABLE table_name_55 (home_captain VARCHAR, result VARCHAR)
SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE DEPT_NAME = "Accounting"
Find the number of professors in accounting department.
CREATE TABLE professor (dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR)
SELECT week_4 FROM table_name_8 WHERE week_5 = "[month ended]" AND week_2 = "april ireland"
Who is in week 4 if week 5 is [month ended] and week 2 is April Ireland?
CREATE TABLE table_name_8 (week_4 VARCHAR, week_5 VARCHAR, week_2 VARCHAR)
SELECT league FROM table_1939235_1 WHERE regular_season = "4th, Great Lakes"
When 4th, great lakes is the regular season what is the league?
CREATE TABLE table_1939235_1 (league VARCHAR, regular_season VARCHAR)
SELECT COUNT(*) FROM candidate
How many candidates are there?
CREATE TABLE candidate (Id VARCHAR)
SELECT score FROM table_name_54 WHERE player = "steve stricker"
What did Steve Stricker score?
CREATE TABLE table_name_54 (score VARCHAR, player VARCHAR)
SELECT COUNT(district) FROM table_1341423_22 WHERE incumbent = "Bart Stupak"
How many districts have Bart Stupak as the incumbent?
CREATE TABLE table_1341423_22 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(interceptions) FROM table_19418696_3
What is the highest number of interceptions?
CREATE TABLE table_19418696_3 (interceptions INTEGER)
SELECT home_team FROM table_name_71 WHERE date = "8 january 1946" AND tie_no = "4"
Who was the home team on 8 January 1946 with a tie no of 4?
CREATE TABLE table_name_71 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT location FROM table_25987797_1 WHERE school = "Lucas"
What is the name of the school in Lucas ?
CREATE TABLE table_25987797_1 (location VARCHAR, school VARCHAR)
SELECT circuit FROM table_1140099_6 WHERE race_name = "II Cape South Easter Trophy"
What circuit has a race called ii cape south easter trophy.
CREATE TABLE table_1140099_6 (circuit VARCHAR, race_name VARCHAR)
SELECT document_type_code FROM Documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1
What is the document type code with most number of documents?
CREATE TABLE Documents (document_type_code VARCHAR)
SELECT SUM(capacity) FROM table_name_21 WHERE city = "trogir"
What is the total capacity for the city of Trogir?
CREATE TABLE table_name_21 (capacity INTEGER, city VARCHAR)
SELECT date FROM table_22875369_3 WHERE irish_points = 89
Name the date for irish points being 89
CREATE TABLE table_22875369_3 (date VARCHAR, irish_points VARCHAR)
SELECT season FROM table_name_54 WHERE goals = "27" AND points = "58"
In what season were there 27 goals and 58 points?
CREATE TABLE table_name_54 (season VARCHAR, goals VARCHAR, points VARCHAR)
SELECT tuesday FROM table_name_16 WHERE series = "big brother 12"
Which Tuesday does big brother 12 air?
CREATE TABLE table_name_16 (tuesday VARCHAR, series VARCHAR)
SELECT college FROM table_name_67 WHERE position = "placekicker"
What college did the placekicker go to?
CREATE TABLE table_name_67 (college VARCHAR, position VARCHAR)
SELECT MIN(money_list_rank) FROM table_24747844_2 WHERE best_finish = "T9"
What is the minimum money list rank for the players having a best finish of T9?
CREATE TABLE table_24747844_2 (money_list_rank INTEGER, best_finish VARCHAR)
SELECT qb_rating FROM table_20906175_3 WHERE name = "Neil Lomax"
What was the QB rating for Neil lomax?
CREATE TABLE table_20906175_3 (qb_rating VARCHAR, name VARCHAR)
SELECT swimming FROM table_name_80 WHERE indoor_track = "yes" AND soccer = "yes" AND tennis = "yes"
What is th eswimming status for the school that has yes on indoor track, soccer and tennis?
CREATE TABLE table_name_80 (swimming VARCHAR, tennis VARCHAR, indoor_track VARCHAR, soccer VARCHAR)
SELECT country FROM table_20036882_2 WHERE winning_pilot = "Hannes Arch"
Name the country for hannes arch
CREATE TABLE table_20036882_2 (country VARCHAR, winning_pilot VARCHAR)
SELECT play FROM table_name_61 WHERE company = "cyprus theatre organisation"
what is the play when the company is cyprus theatre organisation?
CREATE TABLE table_name_61 (play VARCHAR, company VARCHAR)
SELECT swimsuit FROM table_11674683_2 WHERE delegate = "South Africa"
What are the swimsuits for south africa?
CREATE TABLE table_11674683_2 (swimsuit VARCHAR, delegate VARCHAR)
SELECT COUNT(sort_restore) FROM table_name_27 WHERE births = "389"
What is the number of sort values associated with 389 births?
CREATE TABLE table_name_27 (sort_restore VARCHAR, births VARCHAR)
SELECT player FROM table_name_21 WHERE years_of_nba_experience_[a_] = "10"
What Player has 10 Years of NBA experience?
CREATE TABLE table_name_21 (player VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
SELECT district FROM table_1342359_5 WHERE candidates = "Harry Lane Englebright (R) Unopposed"
what's the district with candidates being harry lane englebright (r) unopposed
CREATE TABLE table_1342359_5 (district VARCHAR, candidates VARCHAR)
SELECT date FROM table_name_61 WHERE line_judge = "bob beeks" AND head_linesman = "jerry bergman" AND back_judge = "paul baetz"
What is the date of the game where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge?
CREATE TABLE table_name_61 (date VARCHAR, back_judge VARCHAR, line_judge VARCHAR, head_linesman VARCHAR)
SELECT MAX(score) FROM table_name_59 WHERE player = "grier jones"
What was the top score for grier jones?
CREATE TABLE table_name_59 (score INTEGER, player VARCHAR)
SELECT AVG(points__pts_) FROM table_name_26 WHERE won__pg_ > 17
What is the average number of points of the team with more than 17 pg won?
CREATE TABLE table_name_26 (points__pts_ INTEGER, won__pg_ INTEGER)
SELECT MIN(points) AS won FROM table_27615896_18 WHERE new_points = 1680
How many points were won where new points was 1680?
CREATE TABLE table_27615896_18 (points INTEGER, new_points VARCHAR)
SELECT team FROM table_name_40 WHERE score = "89-123"
Which Team has a Score of 89-123?
CREATE TABLE table_name_40 (team VARCHAR, score VARCHAR)
SELECT streak FROM table_name_42 WHERE record = "20–16"
What is the Streak in the game with a Record of 20–16?
CREATE TABLE table_name_42 (streak VARCHAR, record VARCHAR)
SELECT home_team FROM table_name_89 WHERE away_team = "manchester city"
Who was the home team when Manchester City was the away team?
CREATE TABLE table_name_89 (home_team VARCHAR, away_team VARCHAR)
SELECT aspect_ratio FROM table_1251878_3 WHERE width > 4096.0
What is the size when the frame is bigger than for 4096.0
CREATE TABLE table_1251878_3 (aspect_ratio VARCHAR, width INTEGER)
SELECT MAX(no_in_season) FROM table_25716399_1 WHERE written_by = "Jonathan Collier"
what season was written by jonathan collier?
CREATE TABLE table_25716399_1 (no_in_season INTEGER, written_by VARCHAR)
SELECT MAX(assists) FROM table_24913533_4 WHERE player = "Anastasia Kostaki"
What is the maximum number of assists for players named Anastasia Kostaki?
CREATE TABLE table_24913533_4 (assists INTEGER, player VARCHAR)
SELECT away_team AS score FROM table_name_80 WHERE ground = "waverley park" AND home_team = "collingwood"
What was the away team score when Waverley Park was the ground and the home team was collingwood?
CREATE TABLE table_name_80 (away_team VARCHAR, ground VARCHAR, home_team VARCHAR)
SELECT primary_conference_when_joining_the_csfl FROM table_262501_1 WHERE founded = 1894
What was the primary conference when joining the cslf for the institution that was founded in 1894
CREATE TABLE table_262501_1 (primary_conference_when_joining_the_csfl VARCHAR, founded VARCHAR)
SELECT COUNT(*), T2.FullName, T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id
What is the number of car models that are produced by each maker and what is the id and full name of each maker?
CREATE TABLE CAR_MAKERS (FullName VARCHAR, id VARCHAR, Id VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR)
SELECT COUNT(no) FROM table_12962773_13 WHERE current_club = "Grupo Capitol Valladolid"
Name the total number of grupo capitol valladolid
CREATE TABLE table_12962773_13 (no VARCHAR, current_club VARCHAR)
SELECT money_raised, _2q FROM table_name_22 WHERE total_receipts = "$890,398"
Tell me the money raised when 2Q has total receipts of $890,398
CREATE TABLE table_name_22 (money_raised VARCHAR, _2q VARCHAR, total_receipts VARCHAR)
SELECT date FROM table_name_95 WHERE home = "dallas"
Home of dallas happened on what date?
CREATE TABLE table_name_95 (date VARCHAR, home VARCHAR)
SELECT away_team AS score FROM table_name_8 WHERE venue = "junction oval"
What was the score of the away team at Junction Oval venue?
CREATE TABLE table_name_8 (away_team VARCHAR, venue VARCHAR)
SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777
Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777
CREATE TABLE table_name_60 (constellation VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR)
SELECT AVG(land_area__hectares_) FROM table_name_29 WHERE density__inh_km²_ = 815.48 AND population > 411
What is the average land area with a density of 815.48, and a Population larger than 411?
CREATE TABLE table_name_29 (land_area__hectares_ INTEGER, density__inh_km²_ VARCHAR, population VARCHAR)
SELECT birth FROM table_name_22 WHERE ceased_to_be_duke_of_girona = "21 november 1582"
WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582?
CREATE TABLE table_name_22 (birth VARCHAR, ceased_to_be_duke_of_girona VARCHAR)
SELECT candidates FROM table_1341472_11 WHERE incumbent = "Sam Gibbons"
List all the candidates for the seat where the incumbent is Sam Gibbons?
CREATE TABLE table_1341472_11 (candidates VARCHAR, incumbent VARCHAR)
SELECT Nationality, COUNT(*) FROM pilot GROUP BY Nationality
What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.
CREATE TABLE pilot (Nationality VARCHAR)
SELECT winner_2nd FROM table_name_18 WHERE race = "caulfield guineas"
Who was the winner/2nd place finisher in the Caulfield Guineas?
CREATE TABLE table_name_18 (winner_2nd VARCHAR, race VARCHAR)
SELECT MAX(mintage) FROM table_name_42 WHERE year > 2006 AND theme = "ruby-throated hummingbird"
What is the MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin?
CREATE TABLE table_name_42 (mintage INTEGER, year VARCHAR, theme VARCHAR)
SELECT to_par FROM table_name_93 WHERE country = "england" AND place = "t1"
What is the to par of the player from England with a t1 place?
CREATE TABLE table_name_93 (to_par VARCHAR, country VARCHAR, place VARCHAR)
SELECT MIN(total) FROM table_name_97 WHERE gold > 0 AND silver < 4 AND sport = "football" AND bronze > 1
What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1?
CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, sport VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT colt_model_no FROM table_12834315_1 WHERE bayonet_lug = "No" AND stock = "2nd Generation" AND case_deflector = "No" AND name = "GAU-5A/A"
What are the Colt model numbers of the models named GAU-5A/A, with no bayonet lug, no case deflector and stock of 2nd generation?
CREATE TABLE table_12834315_1 (colt_model_no VARCHAR, name VARCHAR, case_deflector VARCHAR, bayonet_lug VARCHAR, stock VARCHAR)
SELECT leagues_entering_at_this_round FROM table_name_39 WHERE clubs_remaining = 24
What league is entering this round with 24 clubs remaining?
CREATE TABLE table_name_39 (leagues_entering_at_this_round VARCHAR, clubs_remaining VARCHAR)
SELECT AVG(round) FROM table_name_87 WHERE pick__number > 5 AND position = "defensive back" AND overall < 152
What is the average round of the defensive back player with a pick # greater than 5 and an overall less than 152?
CREATE TABLE table_name_87 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR)
SELECT player FROM table_name_49 WHERE to_par = "e" AND score = 68 - 73 - 69 = 210
Who is the player with an E to par and a 68-73-69=210?
CREATE TABLE table_name_49 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT COUNT(event_date) FROM table_28003469_1 WHERE event_details = "Women's Sabre"
How many event dates occurred when event details were women's sabre?
CREATE TABLE table_28003469_1 (event_date VARCHAR, event_details VARCHAR)
SELECT outcome FROM table_name_79 WHERE opponent = "stacy margolin"
What was the outcome of the match against Stacy Margolin?
CREATE TABLE table_name_79 (outcome VARCHAR, opponent VARCHAR)
SELECT COUNT(total_population) FROM table_name_12 WHERE male < 789
What is the total population with less than 789 males?
CREATE TABLE table_name_12 (total_population VARCHAR, male INTEGER)
SELECT MIN(fastest_laps) FROM table_19312274_3
What is the smallest number of fastest laps listed?
CREATE TABLE table_19312274_3 (fastest_laps INTEGER)
SELECT goal_difference FROM table_name_35 WHERE position = 15
What is the goal difference number with a position of 15?
CREATE TABLE table_name_35 (goal_difference VARCHAR, position VARCHAR)
SELECT SUM(win__percentage) FROM table_name_52 WHERE lost = 18
Lost of 18 had what sum of win %?
CREATE TABLE table_name_52 (win__percentage INTEGER, lost VARCHAR)
SELECT kickoff_[a_] FROM table_name_68 WHERE date = "september 15, 1985"
What time was the kickoff on September 15, 1985?
CREATE TABLE table_name_68 (kickoff_ VARCHAR, a_ VARCHAR, date VARCHAR)