answer
stringlengths
28
316
question
stringlengths
21
201
context
stringlengths
33
286
SELECT COUNT(market_value___usd_million_) FROM table_name_10 WHERE industry = "automotive"
What is the market value of the automotive industry?
CREATE TABLE table_name_10 (market_value___usd_million_ VARCHAR, industry VARCHAR)
SELECT rank FROM table_name_75 WHERE points > 123 AND chassis = "audi r8" AND class = "lmp900"
What is the rank with more than 123 points, an audi r8 chassis, and a lmp900 class?
CREATE TABLE table_name_75 (rank VARCHAR, class VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY COUNT(*) DESC LIMIT 1
Which poll resource provided the most number of candidate information?
CREATE TABLE candidate (poll_source VARCHAR)
SELECT accompaniment FROM table_name_26 WHERE title = "stormy seas blues"
what is the accompaniment when the title is stormy seas blues?
CREATE TABLE table_name_26 (accompaniment VARCHAR, title VARCHAR)
SELECT team FROM table_name_47 WHERE race_title = "mallala"
What was the team that held the race title of Mallala?
CREATE TABLE table_name_47 (team VARCHAR, race_title VARCHAR)
SELECT MAX(rank) FROM table_14752049_1 WHERE country = "Germany"
What rank is associated with Germany?
CREATE TABLE table_14752049_1 (rank INTEGER, country VARCHAR)
SELECT circuit FROM table_name_28 WHERE winning_driver = "jochen rindt"
What was the circuit when Jochen Rindt won?
CREATE TABLE table_name_28 (circuit VARCHAR, winning_driver VARCHAR)
SELECT match FROM table_name_19 WHERE competition = "semifinal" AND location = "san francisco"
Which Match played in a Location of San Francisco has a Competition of Semifinal?
CREATE TABLE table_name_19 (match VARCHAR, competition VARCHAR, location VARCHAR)
SELECT home_team FROM table_26847237_3 WHERE opposition = "East Coast"
what is the home team when the opposition is east coast?
CREATE TABLE table_26847237_3 (home_team VARCHAR, opposition VARCHAR)
SELECT SUM(lane) FROM table_name_95 WHERE time = "1:57.71"
What lane has a time of 1:57.71?
CREATE TABLE table_name_95 (lane INTEGER, time VARCHAR)
SELECT pregame_host FROM table_name_98 WHERE network = "bold"
What is the name of the pregame host when Bold was the network?
CREATE TABLE table_name_98 (pregame_host VARCHAR, network VARCHAR)
SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = "Orange")
Find the names of the campus which has more faculties in 2002 than every campus in Orange county.
CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR)
SELECT incumbent FROM table_2668387_18 WHERE district = "Virginia 4"
Name the incumbent for virginia 4
CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR)
SELECT MAX(grid) FROM table_name_56 WHERE constructor = "osella - alfa romeo" AND laps > 61
What is the high grid for osella - alfa romeo, and a Laps larger than 61?
CREATE TABLE table_name_56 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
SELECT COUNT(goals) FROM table_name_40 WHERE name = "diego milito" AND debut_year > 2008
How many goals occurred with Diego Milito in a debut year later than 2008?
CREATE TABLE table_name_40 (goals VARCHAR, name VARCHAR, debut_year VARCHAR)
SELECT vacator FROM table_1134091_4 WHERE date_successor_seated = "August 21, 1973"
Who was the vacator when the date successor seated was august 21, 1973?
CREATE TABLE table_1134091_4 (vacator VARCHAR, date_successor_seated VARCHAR)
SELECT AVG(erp_w) FROM table_name_15 WHERE call_sign = "whre"
What is the average ERP W when the call sign is whre?
CREATE TABLE table_name_15 (erp_w INTEGER, call_sign VARCHAR)
SELECT school FROM table_14286908_1 WHERE year_of_last_win = "2007-08"
What the name of the school where the last win in 2007-08?
CREATE TABLE table_14286908_1 (school VARCHAR, year_of_last_win VARCHAR)
SELECT average FROM table_28846752_4 WHERE highest_score = "151"
What is the average when the highest score is 151?
CREATE TABLE table_28846752_4 (average VARCHAR, highest_score VARCHAR)
SELECT MIN(uni_number) FROM table_name_25 WHERE surname = "wiltshire"
What is the uniform number of the player whose last name is Wiltshire?
CREATE TABLE table_name_25 (uni_number INTEGER, surname VARCHAR)
SELECT attendance FROM table_name_40 WHERE week > 5 AND opponent = "bye"
What is the attendance in the bye week after week 5?
CREATE TABLE table_name_40 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT MIN(first_elected) FROM table_name_36 WHERE results = "re-elected" AND incumbent = "jerry costello"
What is re-elected Incumbent Jerry Costello's First elected date?
CREATE TABLE table_name_36 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)
SELECT laps FROM table_name_61 WHERE manufacturer = "yamaha" AND grid = 3
How many laps did the driver with the yamaha manufacturer go on grid 3?
CREATE TABLE table_name_61 (laps VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT record FROM table_name_37 WHERE date = "october 31"
What is Record, when Date is October 31?
CREATE TABLE table_name_37 (record VARCHAR, date VARCHAR)
SELECT SUM(points) FROM table_name_58 WHERE year = 1988
What is the total point for the year listed in 1988?
CREATE TABLE table_name_58 (points INTEGER, year VARCHAR)
SELECT MAX(year) FROM table_name_50 WHERE delegate = "jennifer tarol barrientos"
Which Year jennifer tarol barrientos is in?
CREATE TABLE table_name_50 (year INTEGER, delegate VARCHAR)
SELECT geust FROM table_name_65 WHERE result = "0:1"
What is the geust with a 0:1 result?
CREATE TABLE table_name_65 (geust VARCHAR, result VARCHAR)
SELECT player FROM table_22875514_3 WHERE field_goals = "18-50 .360"
Which player has 18-50 .360 field goals?
CREATE TABLE table_22875514_3 (player VARCHAR, field_goals VARCHAR)
SELECT MAX(judges) FROM table_19744915_22 WHERE rank = 5
How many judges points did the couple ranked at number 5 have?
CREATE TABLE table_19744915_22 (judges INTEGER, rank VARCHAR)
SELECT total FROM table_name_55 WHERE bronze > 1 AND silver < 5 AND rank = "9"
What is the total having a bronze value over 1, silver under 5, and ranked 9?
CREATE TABLE table_name_55 (total VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT AVG(start) FROM table_name_11 WHERE lost < 22 AND tries > 4
What is the number of starts for the player who lost fewer than 22 and has more than 4 tries?
CREATE TABLE table_name_11 (start INTEGER, lost VARCHAR, tries VARCHAR)
SELECT SUM(points) FROM table_name_79 WHERE drawn > 2 AND position > 5
What is the sum of points for a position over 5 with more than 2 draws?
CREATE TABLE table_name_79 (points INTEGER, drawn VARCHAR, position VARCHAR)
SELECT COUNT(laps) FROM table_name_87 WHERE time_retired = "+12.5 secs"
How many laps have a Time/Retired of +12.5 secs?
CREATE TABLE table_name_87 (laps VARCHAR, time_retired VARCHAR)
SELECT MIN(year) FROM table_name_54 WHERE position = "guard" AND wnba_team = "seattle storm"
What is the earliest year that includes a Seattle Storm guard?
CREATE TABLE table_name_54 (year INTEGER, position VARCHAR, wnba_team VARCHAR)
SELECT up_down FROM table_1161065_28 WHERE hosted = 7
What is the up/down at the venue that hosted 7 games?
CREATE TABLE table_1161065_28 (up_down VARCHAR, hosted VARCHAR)
SELECT general_classification FROM table_12261714_2 WHERE stage = "1a"
Who's leading in the general classification in stage 1a?
CREATE TABLE table_12261714_2 (general_classification VARCHAR, stage VARCHAR)
SELECT COUNT(country) FROM table_229059_2 WHERE champion = "Se Ri Pak (2)"
How many different countries did the champion Se Ri Pak (2) represent?
CREATE TABLE table_229059_2 (country VARCHAR, champion VARCHAR)
SELECT time_retired FROM table_name_75 WHERE laps < 23 AND grid > 23
What was the time/retired for the driver with fewer than 23 laps and grid larger than 23?
CREATE TABLE table_name_75 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT club_province FROM table_name_44 WHERE caps > 9 AND player = "ben franks"
Which club/province has more than 9 caps and Ben Franks as a player?
CREATE TABLE table_name_44 (club_province VARCHAR, caps VARCHAR, player VARCHAR)
SELECT set_2 FROM table_name_74 WHERE set_4 = "21-25"
What set 2 has a set 4 of 21-25?
CREATE TABLE table_name_74 (set_2 VARCHAR, set_4 VARCHAR)
SELECT rider FROM table_name_43 WHERE bike = "honda cbr1000rr" AND laps < 22 AND time = "+2 laps"
Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?
CREATE TABLE table_name_43 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR)
SELECT AVG(year) FROM table_name_27 WHERE inglewood < 2 OFFSET 575
What is the average year that had a value less than 2,575 in Inglewood?
CREATE TABLE table_name_27 (year INTEGER, inglewood INTEGER)
SELECT method FROM table_name_58 WHERE weight_class = "welterweight" AND card = "preliminary"
Which method was used in the welterweight class with a preliminary card?
CREATE TABLE table_name_58 (method VARCHAR, weight_class VARCHAR, card VARCHAR)
SELECT date FROM table_name_18 WHERE opponent = "lizards" AND result = "w 18-17"
What is the date of the game against the Lizards with a result of w 18-17?
CREATE TABLE table_name_18 (date VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT finalist FROM table_name_7 WHERE tournament = "miami"
Who was the finalist in Miami?
CREATE TABLE table_name_7 (finalist VARCHAR, tournament VARCHAR)
SELECT COUNT(no_of_barangays) FROM table_2402209_1 WHERE population__2010_ = 13824
How many different counts of tue number of Barangays are there for the municipality with 13824 citizens in 2010?
CREATE TABLE table_2402209_1 (no_of_barangays VARCHAR, population__2010_ VARCHAR)
SELECT _percentage_of_eu_average_gdp__ppp_ FROM table_2293510_1 WHERE €_per_capita__2005_ = 2519
What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519
CREATE TABLE table_2293510_1 (_percentage_of_eu_average_gdp__ppp_ VARCHAR, €_per_capita__2005_ VARCHAR)
SELECT COUNT(points_for) FROM table_25229283_4 WHERE percentage___percentage_ = "94.29"
How many data are on points for if the percentage is 94.29?
CREATE TABLE table_25229283_4 (points_for VARCHAR, percentage___percentage_ VARCHAR)
SELECT school FROM table_11677100_18 WHERE hometown = "Lake Charles, LA"
What is the school of the player from Lake Charles, LA?
CREATE TABLE table_11677100_18 (school VARCHAR, hometown VARCHAR)
SELECT MAX(lost) FROM table_name_93 WHERE drawn < 4 AND played < 9
Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9?
CREATE TABLE table_name_93 (lost INTEGER, drawn VARCHAR, played VARCHAR)
SELECT SUM(week) FROM table_name_78 WHERE date = "october 4, 1992"
What week has a Date of October 4, 1992?
CREATE TABLE table_name_78 (week INTEGER, date VARCHAR)
SELECT country FROM table_name_26 WHERE player = "dave barr"
WHAT IS THE COUNTRY WITH DAVE BARR?
CREATE TABLE table_name_26 (country VARCHAR, player VARCHAR)
SELECT college FROM table_name_63 WHERE pick > 7 AND name = "dave adams"
What is the college of dave adams, who has a pick greater than 7?
CREATE TABLE table_name_63 (college VARCHAR, pick VARCHAR, name VARCHAR)
SELECT COUNT(weight) FROM table_name_90 WHERE position = "forward/center" AND player = "othella harrington" AND number < 32
What is the total number of Weight, when Position is "Forward/Center", when Player is "Othella Harrington", and when Number is less than 32?
CREATE TABLE table_name_90 (weight VARCHAR, number VARCHAR, position VARCHAR, player VARCHAR)
SELECT date FROM table_name_49 WHERE score_f_a = "2–0" AND opponents = "walsall"
Score F–A of 2–0, and a Opponents of walsall has what date?
CREATE TABLE table_name_49 (date VARCHAR, score_f_a VARCHAR, opponents VARCHAR)
SELECT MAX(two_years) FROM table_174266_6 WHERE unknown > 1.0
If unknown is larger than 1.0, what is the maximum two year amount?
CREATE TABLE table_174266_6 (two_years INTEGER, unknown INTEGER)
SELECT height_in_ft FROM table_11734041_7 WHERE school_club_team_country = "Clemson"
What is the height of the school club team members in clemson?
CREATE TABLE table_11734041_7 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT rifle FROM table_name_94 WHERE german_gewehr_98 = "74cm"
What is the Rifle when the German Gewehr 98 is 74cm?
CREATE TABLE table_name_94 (rifle VARCHAR, german_gewehr_98 VARCHAR)
SELECT score FROM table_name_95 WHERE opponents_in_the_final = "james cerretani todd perry"
What was the score for the match were the opponent in the final was james cerretani todd perry?
CREATE TABLE table_name_95 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT AVG(decile) FROM table_name_84 WHERE name = "te puru school"
What is the average decile for te puru school?
CREATE TABLE table_name_84 (decile INTEGER, name VARCHAR)
SELECT SUM(attendance) FROM table_name_95 WHERE record = "34-44"
On the game that put the team at 34-44, what was the attendance?
CREATE TABLE table_name_95 (attendance INTEGER, record VARCHAR)
SELECT AVG(top_5) FROM table_name_79 WHERE cuts_made = 42
What is the average for the top five having a number of 42 cuts made.
CREATE TABLE table_name_79 (top_5 INTEGER, cuts_made VARCHAR)
SELECT COUNT(overall_record) FROM table_28744929_2 WHERE head_coach = "Frank Beamer"
How many values reflect the overall record of the team coached by Frank Beamer?
CREATE TABLE table_28744929_2 (overall_record VARCHAR, head_coach VARCHAR)
SELECT SUM(score) FROM table_name_96 WHERE opposition = "sussex" AND city = "liverpool"
What was the score when the opposition was sussex in liverpool?
CREATE TABLE table_name_96 (score INTEGER, opposition VARCHAR, city VARCHAR)
SELECT title FROM table_27450976_1 WHERE production_code = "2J5504"
What is the title of the episode with a production code of 2j5504?
CREATE TABLE table_27450976_1 (title VARCHAR, production_code VARCHAR)
SELECT MAX(attendance) FROM table_name_83 WHERE opponent = "oakland raiders" AND week > 9
What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?
CREATE TABLE table_name_83 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT game_site FROM table_14984078_1 WHERE opponent = "Detroit Lions"
Where did the team play the Detroit Lions?
CREATE TABLE table_14984078_1 (game_site VARCHAR, opponent VARCHAR)
SELECT college FROM table_name_74 WHERE round > 9 AND player = "butch webster"
WHAT COLLEGE HAS A ROUND LARGER THAN 9, WITH BUTCH WEBSTER?
CREATE TABLE table_name_74 (college VARCHAR, round VARCHAR, player VARCHAR)
SELECT bowling FROM table_name_7 WHERE player = "min patel"
What was Min Patel's bowling?
CREATE TABLE table_name_7 (bowling VARCHAR, player 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 country FROM table_name_21 WHERE score = 71 - 69 - 70 - 69 = 279
What is the country of the player whose score is 71-69-70-69=279?
CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR)
SELECT college FROM table_name_2 WHERE name = "ray graves"
What college did Ray Graves attend?
CREATE TABLE table_name_2 (college VARCHAR, name VARCHAR)
SELECT class FROM table_name_57 WHERE frequency = "560 am"
What is the class when the frequency is 560 AM?
CREATE TABLE table_name_57 (class VARCHAR, frequency VARCHAR)
SELECT COUNT(category) FROM table_1942366_9 WHERE STRUCT(low) = "35.5"
In how many different categories is the value of C_{low} 35.5?
CREATE TABLE table_1942366_9 (category VARCHAR, low VARCHAR)
SELECT time FROM table_name_83 WHERE event = "njkf titans neo x"
What was the time of the NJKF Titans Neo X event?
CREATE TABLE table_name_83 (time VARCHAR, event VARCHAR)
SELECT race_2 FROM table_name_5 WHERE driver = "paul radisich"
What is Race 2, when Driver is "Paul Radisich"?
CREATE TABLE table_name_5 (race_2 VARCHAR, driver VARCHAR)
SELECT player FROM table_name_84 WHERE jersey_number_s_ = "31"
Who has a Jersey number of 31?
CREATE TABLE table_name_84 (player VARCHAR, jersey_number_s_ VARCHAR)
SELECT entrant FROM table_name_96 WHERE points < 2
Which entrant scored less than 2 points?
CREATE TABLE table_name_96 (entrant VARCHAR, points INTEGER)
SELECT date FROM table_name_65 WHERE team = "accrington" AND venue = "home"
What was the date of the home game against Accrington?
CREATE TABLE table_name_65 (date VARCHAR, team VARCHAR, venue VARCHAR)
SELECT site FROM table_28298589_4 WHERE home_team = "Pittsburgh"
In what facility was Pittsburgh's home game played?
CREATE TABLE table_28298589_4 (site VARCHAR, home_team VARCHAR)
SELECT MAX(laps) FROM table_name_40 WHERE grid < 22 AND rider = "ruben xaus"
Tell me the highest Laps for grid less than 22 and riderS of ruben xaus
CREATE TABLE table_name_40 (laps INTEGER, grid VARCHAR, rider VARCHAR)
SELECT loss FROM table_name_96 WHERE record = "77-65"
What was the loss of the game with a record of 77-65?
CREATE TABLE table_name_96 (loss VARCHAR, record VARCHAR)
SELECT first_elected FROM table_2668378_5 WHERE district = "Kentucky 1"
Name the first elected for kentucky 1
CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR)
SELECT riders FROM table_15327489_1 WHERE team_name = "JiR Team Scot MotoGP"
Name the rdiers for jir team scot motogp
CREATE TABLE table_15327489_1 (riders VARCHAR, team_name VARCHAR)
SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4"
Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?
CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR)
SELECT MAX(Serial) AS number FROM table_29002641_1 WHERE scrapped = "Feb 1994"
Name the most serial number for feb 1994
CREATE TABLE table_29002641_1 (Serial INTEGER, scrapped VARCHAR)
SELECT MAX(associate_professors) FROM table_name_29 WHERE assistant_professors > 5 AND professors < 14
What is the maximum number of associate professors when there are more than 5 assistant professors and fewer than 14 professors?
CREATE TABLE table_name_29 (associate_professors INTEGER, assistant_professors VARCHAR, professors VARCHAR)
SELECT year__ceremony_ FROM table_name_30 WHERE result = "nominee" AND actor_actress = "holly hunter"
What year was holly hunter a nominee?
CREATE TABLE table_name_30 (year__ceremony_ VARCHAR, result VARCHAR, actor_actress VARCHAR)
SELECT retitled_as_same FROM table_name_92 WHERE show = "supermarket sweep"
Which retitled network has a Show of supermarket sweep?
CREATE TABLE table_name_92 (retitled_as_same VARCHAR, show VARCHAR)
SELECT latin FROM table_25401_15 WHERE catalan = "mar"
What is every entry for Latin when Catalan is Mar?
CREATE TABLE table_25401_15 (latin VARCHAR, catalan VARCHAR)
SELECT score FROM table_26847237_1 WHERE round__number = "Round 7"
What was the score in round 7?
CREATE TABLE table_26847237_1 (score VARCHAR, round__number VARCHAR)
SELECT 2011 FROM table_name_34 WHERE 2007 = "atp masters series"
What is the 2011 value that has ATP Masters Series in 2007?
CREATE TABLE table_name_34 (Id VARCHAR)
SELECT fname, major FROM Student WHERE NOT StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Soy")
Find the first name and major of the students who are not allegry to soy.
CREATE TABLE Has_allergy (fname VARCHAR, major VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Student (fname VARCHAR, major VARCHAR, StuID VARCHAR, Allergy VARCHAR)
SELECT date FROM table_17927935_1 WHERE week = 4
What was the date of the week 4 game?
CREATE TABLE table_17927935_1 (date VARCHAR, week VARCHAR)
SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality
Show the different nationalities and the number of journalists of each nationality.
CREATE TABLE journalist (Nationality VARCHAR)
SELECT MIN(rec) FROM table_name_83 WHERE yards > 647 AND avg < 14
How many receptions for players with over 647 yards and an under 14 yard average?
CREATE TABLE table_name_83 (rec INTEGER, yards VARCHAR, avg VARCHAR)
SELECT away_team AS score FROM table_name_83 WHERE crowd > 8 OFFSET 000
What is the score of the away team when the crowd was larger than 8,000?
CREATE TABLE table_name_83 (away_team VARCHAR, crowd INTEGER)
SELECT tournament FROM table_name_6 WHERE 1992 = "a"
What's the tournament when 1992 is A?
CREATE TABLE table_name_6 (tournament VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_6 WHERE market_value__billion_$_ = "204.9"
what is the amount of profits in billions for companies with a market value of 204.9 billion?
CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)
SELECT MAX(finishes) FROM table_23385853_20
What is the finishes maximum number?
CREATE TABLE table_23385853_20 (finishes INTEGER)