question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the Engine for model CF350.
CREATE TABLE table_20866024_4 (engine VARCHAR, model_type VARCHAR)
SELECT engine FROM table_20866024_4 WHERE model_type = "CF350"
what is the highest amount of passengers when there is a rank of 1?
CREATE TABLE table_name_94 (total_passengers INTEGER, rank VARCHAR)
SELECT MAX(total_passengers) FROM table_name_94 WHERE rank = 1
How many players played for adams state school?
CREATE TABLE table_10960039_6 (player VARCHAR, college VARCHAR)
SELECT COUNT(player) FROM table_10960039_6 WHERE college = "Adams State"
What are the start and end dates for incidents with incident type code "NOISE"?
CREATE TABLE Behavior_Incident (date_incident_start VARCHAR, date_incident_end VARCHAR, incident_type_code VARCHAR)
SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = "NOISE"
If the latitude is 76°25′n, what is the longitude?
CREATE TABLE table_name_52 (longitude VARCHAR, latitude VARCHAR)
SELECT longitude FROM table_name_52 WHERE latitude = "76°25′n"
Name the position for 1980 – 1987
CREATE TABLE table_24565004_19 (position VARCHAR, period VARCHAR)
SELECT position FROM table_24565004_19 WHERE period = "1980 – 1987"
What was the total rounds Travis Hamonic played?
CREATE TABLE table_name_61 (round VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_61 WHERE player = "travis hamonic"
what are the song names for the film kaal bhairav?
CREATE TABLE table_11827596_2 (song_name VARCHAR, film_name VARCHAR)
SELECT song_name FROM table_11827596_2 WHERE film_name = "Kaal Bhairav"
Find the names of stadiums that some Australian swimmers have been to.
CREATE TABLE swimmer (id VARCHAR, nationality VARCHAR); CREATE TABLE record (swimmer_id VARCHAR, event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (id VARCHAR, stadium_id VARCHAR)
SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia'
What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers?
CREATE TABLE table_name_51 (ihsaa_class VARCHAR, size VARCHAR, mascot VARCHAR)
SELECT ihsaa_class FROM table_name_51 WHERE size < 400 AND mascot = "tigers"
What is the largest year located in zagreb, croatia?
CREATE TABLE table_name_6 (year INTEGER, location VARCHAR)
SELECT MAX(year) FROM table_name_6 WHERE location = "zagreb, croatia"
what's the height (ft) with name being 52-54 lime street
CREATE TABLE table_13463790_2 (height__ft_ VARCHAR, name VARCHAR)
SELECT height__ft_ FROM table_13463790_2 WHERE name = "52-54 Lime Street"
What is the score for the team that has a record of 80-64?
CREATE TABLE table_name_43 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_43 WHERE record = "80-64"
How many heads of the departments are older than 56 ?
CREATE TABLE head (age INTEGER)
SELECT COUNT(*) FROM head WHERE age > 56
Which Losses have Draws smaller than 0?
CREATE TABLE table_name_15 (losses INTEGER, draws INTEGER)
SELECT MAX(losses) FROM table_name_15 WHERE draws < 0
Which engine is in all rounds with Tsugio Matsuda driving?
CREATE TABLE table_name_9 (engine VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT engine FROM table_name_9 WHERE rounds = "all" AND driver = "tsugio matsuda"
what is the competition when the result is loss in berlin with a score of 0-3?
CREATE TABLE table_name_12 (competition VARCHAR, score VARCHAR, result VARCHAR, location VARCHAR)
SELECT competition FROM table_name_12 WHERE result = "loss" AND location = "berlin" AND score = "0-3"
Find the id of instructors who taught a class in Fall 2009 but not in Spring 2010.
CREATE TABLE teaches (id VARCHAR, semester VARCHAR, YEAR VARCHAR)
SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010
in which class is the position forward
CREATE TABLE table_19897896_7 (class VARCHAR, position VARCHAR)
SELECT class FROM table_19897896_7 WHERE position = "Forward"
How many conflicts started in Afghanistan?
CREATE TABLE table_1921_1 (start_of_conflict VARCHAR, location VARCHAR)
SELECT COUNT(start_of_conflict) FROM table_1921_1 WHERE location = "Afghanistan"
Which player was drafted by the Saskatchewan Roughriders?
CREATE TABLE table_name_5 (player VARCHAR, cfl_team VARCHAR)
SELECT player FROM table_name_5 WHERE cfl_team = "saskatchewan roughriders"
Who were all candidate when incumbent was D. Wyatt Aiken?
CREATE TABLE table_1431467_4 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1431467_4 WHERE incumbent = "D. Wyatt Aiken"
What is the lowest numbered game with an opponent of Minnesota North Stars earlier than February 25?
CREATE TABLE table_name_95 (game INTEGER, opponent VARCHAR, february VARCHAR)
SELECT MIN(game) FROM table_name_95 WHERE opponent = "minnesota north stars" AND february < 25
What team plays at home at Lake Oval?
CREATE TABLE table_name_2 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_2 WHERE venue = "lake oval"
Show the maximum and minimum share count of different transaction types.
CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR, share_count INTEGER)
SELECT transaction_type_code, MAX(share_count), MIN(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code
What's the lane number when time was 20.45 and the react was less than 0.164?
CREATE TABLE table_name_85 (lane INTEGER, react VARCHAR, time VARCHAR)
SELECT MAX(lane) FROM table_name_85 WHERE react < 0.164 AND time = "20.45"
What day was the oppenent the detroit lions?
CREATE TABLE table_14655917_1 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_14655917_1 WHERE opponent = "Detroit Lions"
What is the flange thickness (mm) for the weight (kg/m) 10.4?
CREATE TABLE table_2071644_1 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR)
SELECT flange_thickness__mm_ FROM table_2071644_1 WHERE weight__kg_m_ = "10.4"
What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?
CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)
SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th"
What is the smallest pick with a Reg GP less than 0?
CREATE TABLE table_name_8 (pick__number INTEGER, reg_gp INTEGER)
SELECT MIN(pick__number) FROM table_name_8 WHERE reg_gp < 0
What was average attendance when total attendance was 541380?
CREATE TABLE table_28884858_2 (average_attendance VARCHAR, total_attendance VARCHAR)
SELECT average_attendance FROM table_28884858_2 WHERE total_attendance = 541380
How much Frequency MHz has a Call sign of w264bg?
CREATE TABLE table_name_95 (frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = "w264bg"
What is the lowest league goals that has fw as the position, total goals greater than 9, with league cup goals greater than 4?
CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals VARCHAR, position VARCHAR, total_goals VARCHAR)
SELECT MIN(league_goals) FROM table_name_43 WHERE position = "fw" AND total_goals > 9 AND league_cup_goals > 4
What is every reference for type and usage of Germanium small-signal RF transistor?
CREATE TABLE table_30011_2 (reference VARCHAR, type_and_usage VARCHAR)
SELECT reference FROM table_30011_2 WHERE type_and_usage = "Germanium small-signal RF transistor"
Which school has National Championships smaller than 2, and a Nickname of lions?
CREATE TABLE table_name_21 (school VARCHAR, national_championships VARCHAR, nickname VARCHAR)
SELECT school FROM table_name_21 WHERE national_championships < 2 AND nickname = "lions"
What is the average FA cup that has a league of 0, fahmi hatta as the player, with a Malaysia cup less than 0?
CREATE TABLE table_name_56 (fa_cup INTEGER, malaysia_cup VARCHAR, league VARCHAR, player VARCHAR)
SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = "fahmi hatta" AND malaysia_cup < 0
How many million viewers did episode number 63 have?
CREATE TABLE table_22904707_1 (us_viewers__million_ VARCHAR, no VARCHAR)
SELECT us_viewers__million_ FROM table_22904707_1 WHERE no = 63
What is their withdrawal rate for the school district with headquarters located in Truro?
CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, headquarters VARCHAR)
SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE headquarters = "Truro"
What is the visitor team of the game with Rudy Gay (18) as the leading scorer?
CREATE TABLE table_name_96 (visitor VARCHAR, leading_scorer VARCHAR)
SELECT visitor FROM table_name_96 WHERE leading_scorer = "rudy gay (18)"
Which Giant Slalom was obtained in the 1997 season?
CREATE TABLE table_name_29 (Giant VARCHAR, season VARCHAR)
SELECT Giant AS slalom FROM table_name_29 WHERE season = 1997
Can you tell me the Opponent that has the November larger than 26, and the Game larger than 18?
CREATE TABLE table_name_51 (opponent VARCHAR, november VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_51 WHERE november > 26 AND game > 18
What is the minimum stations owned since kero-tv?
CREATE TABLE table_1847523_2 (owned_since INTEGER, station VARCHAR)
SELECT MIN(owned_since) FROM table_1847523_2 WHERE station = "KERO-TV"
Which Land (sqmi) has a GEO ID smaller than 3800587900?
CREATE TABLE table_name_49 (land___sqmi__ INTEGER, geo_id INTEGER)
SELECT MIN(land___sqmi__) FROM table_name_49 WHERE geo_id < 3800587900
Which Category in Brown has a Frequency of 0.08%?
CREATE TABLE table_name_84 (brown VARCHAR, frequency VARCHAR)
SELECT brown FROM table_name_84 WHERE frequency = "0.08%"
When has Attendances of 45,795?
CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_7 WHERE attendance = "45,795"
What Place has a Player of seve ballesteros?
CREATE TABLE table_name_89 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_89 WHERE player = "seve ballesteros"
What was the biggest crowd when the away team of south melbourne played there?
CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_40 WHERE away_team = "south melbourne"
What is the total years with average runs less than 4.75 and a time of 14.26?
CREATE TABLE table_name_8 (year VARCHAR, time VARCHAR, avg_run VARCHAR)
SELECT COUNT(year) FROM table_name_8 WHERE time = 14.26 AND avg_run < 4.75
What was the winning score of the Vernal Ladies tournament?
CREATE TABLE table_2126093_3 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_2126093_3 WHERE tournament = "Vernal Ladies"
Name the total number of lane for brooke bennett and rank less than 1
CREATE TABLE table_name_15 (lane VARCHAR, name VARCHAR, rank VARCHAR)
SELECT COUNT(lane) FROM table_name_15 WHERE name = "brooke bennett" AND rank < 1
What is the result F-A of the game on 3 may 1993?
CREATE TABLE table_name_93 (result_f___a VARCHAR, date VARCHAR)
SELECT result_f___a FROM table_name_93 WHERE date = "3 may 1993"
Show the names of all the clients with no booking.
CREATE TABLE Clients (Customer_Name VARCHAR, Client_ID VARCHAR); CREATE TABLE Bookings (Customer_ID VARCHAR); CREATE TABLE Clients (Customer_Name VARCHAR)
SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID
List the name of ships whose nationality is not "United States".
CREATE TABLE ship (Name VARCHAR, Nationality VARCHAR)
SELECT Name FROM ship WHERE Nationality <> "United States"
Name the year for avg start being 22.4
CREATE TABLE table_2308381_1 (year VARCHAR, avg_start VARCHAR)
SELECT year FROM table_2308381_1 WHERE avg_start = "22.4"
What is the cable rank for the airdate of 10 december 2009?
CREATE TABLE table_24399615_3 (cable_rank VARCHAR, airdate VARCHAR)
SELECT cable_rank FROM table_24399615_3 WHERE airdate = "10 December 2009"
Name the nomination in 2011 that won
CREATE TABLE table_name_59 (nomination VARCHAR, year VARCHAR, result VARCHAR)
SELECT nomination FROM table_name_59 WHERE year = 2011 AND result = "won"
What was the record when the team played at Oakland Seals?
CREATE TABLE table_name_36 (record VARCHAR, home VARCHAR)
SELECT record FROM table_name_36 WHERE home = "oakland seals"
For the game with 528 attendance, what was the result?
CREATE TABLE table_name_14 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_14 WHERE attendance = "528"
Which venue has h.paul 8/9 goals?
CREATE TABLE table_name_35 (venue VARCHAR, goals VARCHAR)
SELECT venue FROM table_name_35 WHERE goals = "h.paul 8/9"
WHAT TRANSFER FEE HAS A TYPE OF TRANSFER FOR DOS SANTOS?
CREATE TABLE table_name_62 (transfer_fee VARCHAR, type VARCHAR, name VARCHAR)
SELECT transfer_fee FROM table_name_62 WHERE type = "transfer" AND name = "dos santos"
Who is the winner and score during the week of April 22?
CREATE TABLE table_name_54 (winner_and_score VARCHAR, week VARCHAR)
SELECT winner_and_score FROM table_name_54 WHERE week = "april 22"
What is the nickname of Columbia University?
CREATE TABLE table_name_62 (nickname VARCHAR, institution VARCHAR)
SELECT nickname FROM table_name_62 WHERE institution = "columbia university"
What's the status for an against below 22 with an opposing team of Australia?
CREATE TABLE table_name_86 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR)
SELECT status FROM table_name_86 WHERE against < 22 AND opposing_teams = "australia"
Tell me the sum of earnings for rank less than 1
CREATE TABLE table_name_63 (earnings__ INTEGER, rank INTEGER)
SELECT SUM(earnings__) AS $__ FROM table_name_63 WHERE rank < 1
what is romanian when nuorese sardinian is [ˈkantata]?
CREATE TABLE table_25401_2 (romanian VARCHAR, nuorese_sardinian VARCHAR)
SELECT romanian FROM table_25401_2 WHERE nuorese_sardinian = "[ˈkantata]"
What is the average number of gold medals with more than 1 bronze medal?
CREATE TABLE table_name_6 (gold INTEGER, bronze INTEGER)
SELECT AVG(gold) FROM table_name_6 WHERE bronze > 1
Which First title has Wins smaller than 8 and in Canada?
CREATE TABLE table_name_41 (first_title VARCHAR, wins VARCHAR, country VARCHAR)
SELECT COUNT(first_title) FROM table_name_41 WHERE wins < 8 AND country = "canada"
Name the january 15-16 where march 27-29 where march 29, 2006
CREATE TABLE table_1708610_3 (january_15_16 VARCHAR, march_27_29 VARCHAR)
SELECT january_15_16 FROM table_1708610_3 WHERE march_27_29 = "March 29, 2006"
What is the 2003 statistic for the product that had 514,000 tonnes in 2001?
CREATE TABLE table_name_34 (Id VARCHAR)
SELECT 2003 FROM table_name_34 WHERE 2001 = "514,000 tonnes"
What's the court ranking of 5th son of tadayori and has revenues of 10,000 koku?
CREATE TABLE table_name_32 (court_rank VARCHAR, revenues VARCHAR, lineage VARCHAR)
SELECT court_rank FROM table_name_32 WHERE revenues = "10,000 koku" AND lineage = "5th son of tadayori"
What is the date of the game when the record is 2-0?
CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_53 WHERE record = "2-0"
What position has a time over 38.61 at the gothenburg venue?
CREATE TABLE table_name_96 (position VARCHAR, time VARCHAR, venue VARCHAR)
SELECT position FROM table_name_96 WHERE time > 38.61 AND venue = "gothenburg"
What is the US release date?
CREATE TABLE table_name_5 (release_date VARCHAR, location VARCHAR)
SELECT release_date FROM table_name_5 WHERE location = "us"
What is the week 5 after Dani Dior as week 1?
CREATE TABLE table_name_36 (week_5 VARCHAR, week_1 VARCHAR)
SELECT week_5 FROM table_name_36 WHERE week_1 = "dani dior"
Name the incumbent for district texas 12
CREATE TABLE table_1341690_43 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341690_43 WHERE district = "Texas 12"
Nametheh school team for norman gonzales
CREATE TABLE table_15463188_7 (school_club_team VARCHAR, name VARCHAR)
SELECT school_club_team FROM table_15463188_7 WHERE name = "Norman Gonzales"
Show the budget type code and description and the corresponding document id.
CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)
SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code
When did the airplane with tail number RA-85282 crash?
CREATE TABLE table_229917_2 (date__ddmmyyyy_ VARCHAR, tail_number VARCHAR)
SELECT date__ddmmyyyy_ FROM table_229917_2 WHERE tail_number = "RA-85282"
Name the authority for morrinsville college
CREATE TABLE table_name_88 (authority VARCHAR, name VARCHAR)
SELECT authority FROM table_name_88 WHERE name = "morrinsville college"
What is the against for 17/02/1979?
CREATE TABLE table_name_76 (against VARCHAR, date VARCHAR)
SELECT against FROM table_name_76 WHERE date = "17/02/1979"
What was the Rhein Fire team record on week 8?
CREATE TABLE table_24453847_2 (team_record VARCHAR, week VARCHAR)
SELECT team_record FROM table_24453847_2 WHERE week = 8
What is the dage of catalog asw 28033?
CREATE TABLE table_name_68 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_68 WHERE catalog = "asw 28033"
Which state is frederick bamford a member of?
CREATE TABLE table_name_24 (state VARCHAR, member VARCHAR)
SELECT state FROM table_name_24 WHERE member = "frederick bamford"
What school with a decile of 7 is in upper hutt?
CREATE TABLE table_name_39 (name VARCHAR, decile VARCHAR, area VARCHAR)
SELECT name FROM table_name_39 WHERE decile = "7" AND area = "upper hutt"
How many people attended the North Melbourne game?
CREATE TABLE table_name_71 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_71 WHERE home_team = "north melbourne"
Name the representative for party of whig
CREATE TABLE table_name_76 (representative VARCHAR, party VARCHAR)
SELECT representative FROM table_name_76 WHERE party = "whig"
What is the average administrative panel of the composition nominated by Taoiseach 0 times with a total less than 4?
CREATE TABLE table_name_36 (administrative_panel INTEGER, nominated_by_the_taoiseach VARCHAR, total VARCHAR)
SELECT AVG(administrative_panel) FROM table_name_36 WHERE nominated_by_the_taoiseach = 0 AND total < 4
Which country placed t3 and had the player Fred Couples?
CREATE TABLE table_name_37 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_37 WHERE place = "t3" AND player = "fred couples"
How many in total were elected first in lost renomination?
CREATE TABLE table_1342338_3 (first_elected VARCHAR, result VARCHAR)
SELECT COUNT(first_elected) FROM table_1342338_3 WHERE result = "Lost renomination"
How many golds have a Total of 11, and a Bronze smaller than 3?
CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_81 WHERE total = 11 AND bronze < 3
What district has abhayapuri south as the name?
CREATE TABLE table_name_41 (district VARCHAR, name VARCHAR)
SELECT district FROM table_name_41 WHERE name = "abhayapuri south"
What is the lowest drawn for entries with a lost of 13?
CREATE TABLE table_name_38 (drawn INTEGER, lost VARCHAR)
SELECT MIN(drawn) FROM table_name_38 WHERE lost = 13
what's the points with played being 22 and points against being 319
CREATE TABLE table_13940275_5 (points VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT points FROM table_13940275_5 WHERE played = "22" AND points_against = "319"
How many countries had players named Marc Savard get picked?
CREATE TABLE table_2886617_4 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(nationality) FROM table_2886617_4 WHERE player = "Marc Savard"
What titles come out monthly?
CREATE TABLE table_name_72 (title VARCHAR, frequency VARCHAR)
SELECT title FROM table_name_72 WHERE frequency = "monthly"
What College/Junior/Club Team (League) from Canada has a round smaller than 3?
CREATE TABLE table_name_52 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_52 WHERE nationality = "canada" AND round < 3
How many Inhabitants were in the democratic party for an election before 2009 for Mayor of stefano cimatti?
CREATE TABLE table_name_3 (inhabitants VARCHAR, election VARCHAR, party VARCHAR, mayor VARCHAR)
SELECT COUNT(inhabitants) FROM table_name_3 WHERE party = "democratic party" AND mayor = "stefano cimatti" AND election < 2009
What is the race winners for the date of 23 june?
CREATE TABLE table_name_77 (race_winners VARCHAR, date VARCHAR)
SELECT race_winners FROM table_name_77 WHERE date = "23 june"
What high points did San Francisco have in a game later than 69?
CREATE TABLE table_name_39 (high_points VARCHAR, game VARCHAR, team VARCHAR)
SELECT high_points FROM table_name_39 WHERE game > 69 AND team = "san francisco"
What position after round 8 has a pick less than 270?
CREATE TABLE table_name_67 (position VARCHAR, round VARCHAR, pick VARCHAR)
SELECT position FROM table_name_67 WHERE round > 8 AND pick < 270