answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT player FROM table_10015132_7 WHERE school_club_team = "Georgia"
which player is from georgia
CREATE TABLE table_10015132_7 (player VARCHAR, school_club_team VARCHAR)
SELECT COUNT(market_value___usd_million_) FROM table_name_51 WHERE headquarters = "germany"
What is the total market value of all corporations headquartered in Germany?
CREATE TABLE table_name_51 (market_value___usd_million_ VARCHAR, headquarters VARCHAR)
SELECT MIN(no_in_season) FROM table_2226817_9 WHERE no_in_series = 158
How many seasons had episode 158?
CREATE TABLE table_2226817_9 (no_in_season INTEGER, no_in_series VARCHAR)
SELECT result FROM table_2668367_7 WHERE district = "Kentucky 8"
What was the result in the election in the Kentucky 8 district?
CREATE TABLE table_2668367_7 (result VARCHAR, district VARCHAR)
SELECT COUNT(goals_scored) FROM table_16034882_2 WHERE goals_conceded = 35
How many total goals were scored in games where goals conceded was 35?
CREATE TABLE table_16034882_2 (goals_scored VARCHAR, goals_conceded VARCHAR)
SELECT project_name FROM table_name_36 WHERE country = "opec"
What is the Project Name with a Country that is opec?
CREATE TABLE table_name_36 (project_name VARCHAR, country VARCHAR)
SELECT MIN(losses) FROM table_name_96 WHERE club = "mortlake" AND against < 970
What are the least losses of Mortlake having less than 970 against?
CREATE TABLE table_name_96 (losses INTEGER, club VARCHAR, against VARCHAR)
SELECT MIN(game) FROM table_27704187_11 WHERE date = "April 8"
What game number was played on april 8?
CREATE TABLE table_27704187_11 (game INTEGER, date VARCHAR)
SELECT hand_guards FROM table_12834315_5 WHERE name = "Gas Piston Commando"
What hand guard system is used with a gas piston commando?
CREATE TABLE table_12834315_5 (hand_guards VARCHAR, name VARCHAR)
SELECT playoffs FROM table_14240688_1 WHERE open_cup = "2nd Round"
Name the playoffs for 2nd round open cup
CREATE TABLE table_14240688_1 (playoffs VARCHAR, open_cup VARCHAR)
SELECT COUNT(won) FROM table_17510803_2 WHERE points_against = "410"
How many won when points against is 410?
CREATE TABLE table_17510803_2 (won VARCHAR, points_against VARCHAR)
SELECT city FROM table_name_65 WHERE date = "october 13"
Wjich city had a date of october 13?
CREATE TABLE table_name_65 (city VARCHAR, date VARCHAR)
SELECT MAX(2000) FROM table_name_51 WHERE 2010 = 82 AND 2005 < 74
What is the highest 2000 value that has a 2010 value of 82 and a 2005 value less than 74?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT COUNT(vacator) FROM table_225095_4 WHERE district = "North Carolina 3rd"
How many Vacators were listed when the district was North Carolina 3rd?
CREATE TABLE table_225095_4 (vacator VARCHAR, district VARCHAR)
SELECT MAX(crowd) FROM table_name_96 WHERE home_team = "carlton"
What is the largest crowd for a Home team of carlton?
CREATE TABLE table_name_96 (crowd INTEGER, home_team VARCHAR)
SELECT venue FROM table_name_6 WHERE away_team = "hawthorn"
Where did Hawthorn play an away game?
CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR)
SELECT location FROM table_name_34 WHERE mascot = "tigers"
Which Location has a Mascot of tigers?
CREATE TABLE table_name_34 (location VARCHAR, mascot VARCHAR)
SELECT cardinalatial_title FROM table_name_36 WHERE elevated = "september 18, 1294" AND elector = "bérard de got"
What is the cardinalatial title when the elevated is September 18, 1294, and elector is Bérard De Got?
CREATE TABLE table_name_36 (cardinalatial_title VARCHAR, elevated VARCHAR, elector VARCHAR)
SELECT MAX(successes) FROM table_name_25 WHERE failures > 1 AND launches < 28
What is the greatest successes that have failures greater than 1 and launches less than 28?
CREATE TABLE table_name_25 (successes INTEGER, failures VARCHAR, launches VARCHAR)
SELECT round FROM table_name_5 WHERE position = "f"
Which Round was F picked?
CREATE TABLE table_name_5 (round VARCHAR, position VARCHAR)
SELECT COUNT(tests) FROM table_name_43 WHERE lost < 9 AND name = "sir fred allen"
What is the total number of Tests when the lost is less than 9 for sir fred allen?
CREATE TABLE table_name_43 (tests VARCHAR, lost VARCHAR, name VARCHAR)
SELECT rd FROM table_14016079_1 WHERE circuit = "Queensland Raceway"
What round was held at the Queensland Raceway?
CREATE TABLE table_14016079_1 (rd VARCHAR, circuit VARCHAR)
SELECT bumping_blocking FROM table_name_49 WHERE ankle_tap = "yes" AND steal_intercept_ball = "yes"
Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?
CREATE TABLE table_name_49 (bumping_blocking VARCHAR, ankle_tap VARCHAR, steal_intercept_ball VARCHAR)
SELECT report FROM table_10707142_2 WHERE circuit = "Nazareth Speedway"
what is the report called where the circuit took place at the nazareth speedway?
CREATE TABLE table_10707142_2 (report VARCHAR, circuit VARCHAR)
SELECT broadcast_network FROM table_21076286_2 WHERE broadcast_scope = "Saitama Prefecture"
Name the broadcast network for saitama prefecture
CREATE TABLE table_21076286_2 (broadcast_network VARCHAR, broadcast_scope VARCHAR)
SELECT distance FROM table_name_59 WHERE date = "saturday, august 23"
What was the distance of the race on saturday, august 23?
CREATE TABLE table_name_59 (distance VARCHAR, date VARCHAR)
SELECT city FROM table_name_41 WHERE erp__analog__digital_ = "600kw 500kw"
Which City has 600kw 500kw ERP (Analog/ Digital)?
CREATE TABLE table_name_41 (city VARCHAR, erp__analog__digital_ VARCHAR)
SELECT venue FROM table_name_51 WHERE score = "4.10 (34) - 8.12 (60)"
Where was the match with a score of 4.10 (34) - 8.12 (60)?
CREATE TABLE table_name_51 (venue VARCHAR, score VARCHAR)
SELECT party FROM table_1341577_43 WHERE first_elected = 1982
Which party is associated with the person who was first elected in 1982?
CREATE TABLE table_1341577_43 (party VARCHAR, first_elected VARCHAR)
SELECT COUNT(rainfall_by_depth__mm_year_) FROM table_25983027_1 WHERE infiltration__km_3__year_ = "9.3"
How many regions had rainfall infiltration (km 3/year) of 9.3?
CREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, infiltration__km_3__year_ VARCHAR)
SELECT drawn FROM table_name_75 WHERE tries_against = "69"
What is the draw when the tries against was 69?
CREATE TABLE table_name_75 (drawn VARCHAR, tries_against VARCHAR)
SELECT name FROM table_name_57 WHERE height = "m (ft 9in)" AND date_of_birth = "1980-03-05"
Who has the height of m (ft 9in) and was born on 1980-03-05?
CREATE TABLE table_name_57 (name VARCHAR, height VARCHAR, date_of_birth VARCHAR)
SELECT COUNT(high_assists) FROM table_27756474_2 WHERE team = "Caja Laboral"
How many high assists where there for the team of caja laboral?
CREATE TABLE table_27756474_2 (high_assists VARCHAR, team VARCHAR)
SELECT date FROM table_name_4 WHERE venue = "lake oval"
On what date was a match played at Lake Oval?
CREATE TABLE table_name_4 (date VARCHAR, venue VARCHAR)
SELECT cash_on_hand FROM table_name_60 WHERE after_debt = "$327,094"
What is the amount of cash on hand that has an after debt of $327,094
CREATE TABLE table_name_60 (cash_on_hand VARCHAR, after_debt VARCHAR)
SELECT COUNT(home_ground) FROM table_11365528_2 WHERE president = "Peter Williamson"
The president, peter williamson, had how many home grounds?
CREATE TABLE table_11365528_2 (home_ground VARCHAR, president VARCHAR)
SELECT date FROM table_name_91 WHERE winning_driver = "rudolf caracciola" AND name = "avusrennen"
Tell me the date for rudolf caracciola for avusrennen
CREATE TABLE table_name_91 (date VARCHAR, winning_driver VARCHAR, name VARCHAR)
SELECT date FROM table_name_65 WHERE week = "9"
When was the date that week 9 started?
CREATE TABLE table_name_65 (date VARCHAR, week VARCHAR)
SELECT country FROM table_name_82 WHERE city = "zamboanga"
What is Country, when City is "Zamboanga"?
CREATE TABLE table_name_82 (country VARCHAR, city VARCHAR)
SELECT runner_up FROM table_name_69 WHERE winning_score = −20(70 - 69 - 64 - 65 = 268)
Which Runner-up has a Winning score of −20 (70-69-64-65=268)?
CREATE TABLE table_name_69 (runner_up VARCHAR, winning_score VARCHAR)
SELECT institution FROM table_261913_1 WHERE location__all_in_minnesota_ = "St. Peter"
What institution is located in St. Peter?
CREATE TABLE table_261913_1 (institution VARCHAR, location__all_in_minnesota_ VARCHAR)
SELECT turbo FROM table_name_63 WHERE frequency = "2.2 ghz"
what is the turbo when the frequency is 2.2 ghz?
CREATE TABLE table_name_63 (turbo VARCHAR, frequency VARCHAR)
SELECT silver FROM table_name_21 WHERE year < 2010 AND gold = "chan ming shu"
Who won silver in the year before 2010, the year Chan Ming Shu won gold?
CREATE TABLE table_name_21 (silver VARCHAR, year VARCHAR, gold VARCHAR)
SELECT player FROM table_name_75 WHERE score = 69 - 71 = 140
Who scored 69-71=140?
CREATE TABLE table_name_75 (player VARCHAR, score VARCHAR)
SELECT games FROM table_name_60 WHERE name = "patrick etolu"
In what Games did Patrick Etolu compete?
CREATE TABLE table_name_60 (games VARCHAR, name VARCHAR)
SELECT customer_phone, customer_email FROM Customers WHERE customer_first_name = "Aniyah" AND customer_last_name = "Feest"
What is the phone and email for customer with first name Aniyah and last name Feest?
CREATE TABLE Customers (customer_phone VARCHAR, customer_email VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
SELECT home_team AS score FROM table_name_15 WHERE home_team = "footscray"
What was Footscray's score as the home team?
CREATE TABLE table_name_15 (home_team VARCHAR)
SELECT points FROM table_name_24 WHERE goals_against = "222"
What's the points if the goals against were 222?
CREATE TABLE table_name_24 (points VARCHAR, goals_against VARCHAR)
SELECT MIN(pick__number) FROM table_2850912_3 WHERE player = "Graeme Bonar"
What is Graeme Bonar's lowest pick number?
CREATE TABLE table_2850912_3 (pick__number INTEGER, player VARCHAR)
SELECT manner_of_departure FROM table_name_30 WHERE date_of_vacancy = "20 september 2009"
What was the manner of departure for the vacancy date of 20 September 2009?
CREATE TABLE table_name_30 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT MAX(extra) FROM table_name_51 WHERE meeting = "all africa games" AND year < 2003
What is the highest extra total before 2003 at the Meeting of all africa games?
CREATE TABLE table_name_51 (extra INTEGER, meeting VARCHAR, year VARCHAR)
SELECT name FROM table_name_8 WHERE lane < 7 AND time > 54.32 AND nationality = "germany" AND rank < 5
Which name has a lane smaller than 7, and a time greater than 54.32 with germany as the nationality and a rank less than 5?
CREATE TABLE table_name_8 (name VARCHAR, rank VARCHAR, nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT COUNT(directed_by) FROM table_25716397_1 WHERE series_no = 55
How many directors of episode 55?
CREATE TABLE table_25716397_1 (directed_by VARCHAR, series_no VARCHAR)
SELECT home FROM table_name_49 WHERE time = "18:00" AND geust = "servette fc (chl)"
What is Home, when Time is 18:00, and when Geust is Servette FC (CHL)?
CREATE TABLE table_name_49 (home VARCHAR, time VARCHAR, geust VARCHAR)
SELECT calling_at FROM table_18332845_2 WHERE departure = "09.50"
What is the calling at for the 09.50 departure?
CREATE TABLE table_18332845_2 (calling_at VARCHAR, departure VARCHAR)
SELECT AVG(round) FROM table_name_49 WHERE event = "gcf: strength and honor"
How many rounds did the match at GCF: Strength and Honor last?
CREATE TABLE table_name_49 (round INTEGER, event VARCHAR)
SELECT team FROM table_name_16 WHERE game = 48
Name the team for 48 game
CREATE TABLE table_name_16 (team VARCHAR, game VARCHAR)
SELECT T1.name, T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(T2.bikes_available) > 14 UNION SELECT name, id FROM station WHERE installation_date LIKE "12/%"
What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?
CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE station (name VARCHAR, id VARCHAR, installation_date VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available INTEGER)
SELECT lunar_landing_site FROM table_1558077_8 WHERE lunar_landing_date = "19 November 1969"
Name the lunar landing site for 19 november 1969
CREATE TABLE table_1558077_8 (lunar_landing_site VARCHAR, lunar_landing_date VARCHAR)
SELECT administration FROM table_name_21 WHERE division = "ykkönen (first division)" AND position = "1st" AND season = 1996
What is the administration when the division was Ykkönen (first division), and they were in the 1st position in 1996?
CREATE TABLE table_name_21 (administration VARCHAR, season VARCHAR, division VARCHAR, position VARCHAR)
SELECT name AS origin FROM table_16799784_2 WHERE longitude = "54.0E"
Name the name origin for 54.0e
CREATE TABLE table_16799784_2 (name VARCHAR, longitude VARCHAR)
SELECT captain FROM table_1165048_1 WHERE coach = "Geoff Miles"
who is the captain where coach is geoff miles
CREATE TABLE table_1165048_1 (captain VARCHAR, coach VARCHAR)
SELECT undecided FROM table_name_66 WHERE date = "2009-05-24"
What is the Undecided on 2009-05-24?
CREATE TABLE table_name_66 (undecided VARCHAR, date VARCHAR)
SELECT COUNT(starts) FROM table_name_47 WHERE driver = "nasser al-attiyah" AND points > 1
What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?
CREATE TABLE table_name_47 (starts VARCHAR, driver VARCHAR, points VARCHAR)
SELECT res FROM table_name_96 WHERE opponent = "jeff monson"
What is the result of the match with Jeff Monson as opponent?
CREATE TABLE table_name_96 (res VARCHAR, opponent VARCHAR)
SELECT COUNT(event) FROM table_name_92 WHERE round = "radek štěpánek" AND NOT aces < 3
What is the event year radek štěpánek was the round and there were less than 3 aces?
CREATE TABLE table_name_92 (event VARCHAR, round VARCHAR, aces VARCHAR)
SELECT original_air_date FROM table_1876825_6 WHERE production_code = "06-03-521"
What was the original air for the 06-03-521 production code?
CREATE TABLE table_1876825_6 (original_air_date VARCHAR, production_code VARCHAR)
SELECT country FROM table_name_32 WHERE score = 72 - 67 = 139
Which country had a score of 72-67=139?
CREATE TABLE table_name_32 (country VARCHAR, score VARCHAR)
SELECT team FROM table_27712180_13 WHERE date = "May 6"
What was the name of the opposing team on the May 6 game?
CREATE TABLE table_27712180_13 (team VARCHAR, date VARCHAR)
SELECT MAX(first_elected) FROM table_1341586_39 WHERE incumbent = "Gus Yatron"
what is the maximum first elected with incumbent being gus yatron
CREATE TABLE table_1341586_39 (first_elected INTEGER, incumbent VARCHAR)
SELECT music FROM table_name_7 WHERE result = "eliminated"
What was the music of the team that was eliminated?
CREATE TABLE table_name_7 (music VARCHAR, result VARCHAR)
SELECT nation FROM table_name_54 WHERE total < 19 AND bronze < 1
Which nation's total is less than 19 when there's less than 1 bronze?
CREATE TABLE table_name_54 (nation VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = "Solveig" AND T2.title = "A Bar In Amsterdam"
Which vocal type did the musician with first name "Solveig" played in the song with title "A Bar in Amsterdam"?
CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE band (id VARCHAR, firstname VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)
SELECT record FROM table_name_61 WHERE date = "january 17"
What was the record on January 17?
CREATE TABLE table_name_61 (record VARCHAR, date VARCHAR)
SELECT current_conference FROM table_1973729_2 WHERE nickname = "Chargers"
Which conference has the nickname Chargers?
CREATE TABLE table_1973729_2 (current_conference VARCHAR, nickname VARCHAR)
SELECT venue FROM table_name_1 WHERE score = "120-108"
What venue had a Score of 120-108?
CREATE TABLE table_name_1 (venue VARCHAR, score VARCHAR)
SELECT vote_id, phone_number, state FROM votes
List the vote ids, phone numbers and states of all votes.
CREATE TABLE votes (vote_id VARCHAR, phone_number VARCHAR, state VARCHAR)
SELECT sport FROM table_name_27 WHERE date = "november 14, 2009"
What sport was played on November 14, 2009?
CREATE TABLE table_name_27 (sport VARCHAR, date VARCHAR)
SELECT Name FROM company ORDER BY Sales_in_Billion
List the names of companies by ascending number of sales.
CREATE TABLE company (Name VARCHAR, Sales_in_Billion VARCHAR)
SELECT hdr_output___exr_, _hdr, _logluv_, _etc_ FROM table_name_63 WHERE "name" = "name"
What's the HDR Output that has a name of name?
CREATE TABLE table_name_63 (hdr_output___exr_ VARCHAR, _hdr VARCHAR, _logluv_ VARCHAR, _etc_ VARCHAR)
SELECT college FROM table_name_63 WHERE pick__number > 195 AND player = "mark brown"
Which College has Player Mark Brown and a Pick # greater than 195?
CREATE TABLE table_name_63 (college VARCHAR, pick__number VARCHAR, player VARCHAR)
SELECT incumbent FROM table_2668352_14 WHERE result = "Lost re-election Democratic-Republican hold"
Name the incumbent for lost re-election democratic-republican hold
CREATE TABLE table_2668352_14 (incumbent VARCHAR, result VARCHAR)
SELECT COUNT(losses) FROM table_name_61 WHERE games < 14 AND wins < 3 AND conference = "maac" AND school = "fairfield"
What is the total number of losses of the team with games less than 14, wins less than 3, in the Maac Conference at Fairfield School?
CREATE TABLE table_name_61 (losses VARCHAR, school VARCHAR, conference VARCHAR, games VARCHAR, wins VARCHAR)
SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%'
What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class?
CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR, stu_lname VARCHAR)
SELECT team FROM table_2139390_2 WHERE date = "June 20"
Name the team for june 20
CREATE TABLE table_2139390_2 (team VARCHAR, date VARCHAR)
SELECT studio FROM table_name_95 WHERE director = "david fincher"
What studio is director David Fincher from?
CREATE TABLE table_name_95 (studio VARCHAR, director VARCHAR)
SELECT mens_doubles FROM table_12266757_1 WHERE season = "1986/1987"
Who were the winners of mens doubles in the 1986/1987 season held?
CREATE TABLE table_12266757_1 (mens_doubles VARCHAR, season VARCHAR)
SELECT date FROM table_name_86 WHERE road_team = "boston" AND result = "126-105"
WHAT IS THE DATE WITH BOSTON ROAD TEAM AND 126-105 RESULT?
CREATE TABLE table_name_86 (date VARCHAR, road_team VARCHAR, result VARCHAR)
SELECT COUNT(no) FROM table_10083598_1 WHERE pole_position = "Kevin Curtain"
What was the number of race that Kevin Curtain won?
CREATE TABLE table_10083598_1 (no VARCHAR, pole_position 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 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 notes FROM table_name_79 WHERE title = "happy camp"
What are the notes for Happy Camp?
CREATE TABLE table_name_79 (notes VARCHAR, title VARCHAR)
SELECT RoomId, roomName FROM Rooms ORDER BY basePrice DESC LIMIT 1
Find the id and name of the most expensive base price room.
CREATE TABLE Rooms (RoomId VARCHAR, roomName VARCHAR, basePrice VARCHAR)
SELECT position FROM table_name_59 WHERE throws = "r" AND dob = "12 february 1983"
Which Position has Throws of r, and a DOB of 12 february 1983?
CREATE TABLE table_name_59 (position VARCHAR, throws VARCHAR, dob VARCHAR)
SELECT final FROM table_name_44 WHERE athlete = "mohammad reza samadi"
What was the final round result of Mohammad Reza Samadi?
CREATE TABLE table_name_44 (final VARCHAR, athlete VARCHAR)
SELECT rank FROM table_name_31 WHERE venue = "bellerive oval , hobart" AND margin = "115 runs"
What is the Rank that has a Venue of bellerive oval , hobart, and a Margin of 115 runs?
CREATE TABLE table_name_31 (rank VARCHAR, venue VARCHAR, margin VARCHAR)
SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = "European Union"
What length of stay is permitted in the European Union?
CREATE TABLE table_25965003_3 (length_of_stay_permitted VARCHAR, countries_and_territories VARCHAR)
SELECT MIN(floors) FROM table_name_42 WHERE height__m_ = 116
What are the fewest floors for the building that has a height of 116 meters?
CREATE TABLE table_name_42 (floors INTEGER, height__m_ VARCHAR)
SELECT MAX(position) FROM table_15331868_1 WHERE against = 28
What the highest position when there is 28 against?
CREATE TABLE table_15331868_1 (position INTEGER, against VARCHAR)
SELECT outcome FROM table_name_76 WHERE date = "6 march 2000"
Name the outcome for 6 march 2000
CREATE TABLE table_name_76 (outcome VARCHAR, date VARCHAR)