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