sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT production_code FROM table_19229713_4 WHERE us_viewers__million_ = "1.69"
CREATE TABLE INST, Here is a database schema( table schema);
Name the production code for viewers for 1.69It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Opponent = emanuel newton
CREATE TABLE INST, Here is a database schema( table schema);
What is the round of the match with Emanuel Newton as the opponent?.It is not neccessary to use all the tables.
SELECT turing_complete FROM table_13636_1 WHERE name = "Atanasoff–Berry Computer (US)"
CREATE TABLE INST, Here is a database schema( table schema);
what's the turing complete with name being atanasoff–berry computer (us)It is not neccessary to use all the tables.
SELECT position FROM table_14342367_7 WHERE player = "Paul Jones"
CREATE TABLE INST, Here is a database schema( table schema);
What positions did Paul Jones play?It is not neccessary to use all the tables.
SELECT name FROM Person WHERE age < 30
CREATE TABLE INST, Here is a database schema( table schema);
Who is the person whose age is below 30?It is not neccessary to use all the tables.
SELECT school FROM table_name_90 WHERE name = "ivey armstrong"
CREATE TABLE INST, Here is a database schema( table schema);
what is the school for Ivey armstrong?It is not neccessary to use all the tables.
SELECT COUNT(wins) FROM table_name_84 WHERE byes < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of wins that has byes less than 0?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE First elected = 1948 , 1964
CREATE TABLE INST, Here is a database schema( table schema);
what's the result for first elected in 1948 , 1964.It is not neccessary to use all the tables.
SELECT adverbial FROM table_name_92 WHERE nominative = "me"
CREATE TABLE INST, Here is a database schema( table schema);
What is the adverbial for the nominative me?It is not neccessary to use all the tables.
SELECT COUNT Week 2 FROM table WHERE Week 7 = 40 + 40 = 80
CREATE TABLE INST, Here is a database schema( table schema);
How many week 2 scores have a week 7 score of 40 + 40 = 80?.It is not neccessary to use all the tables.
SELECT "nation" FROM table_204_785 ORDER BY "total" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
who won the most total medals ?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Away team = stafford rangers
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game where stafford rangers was the away team?.It is not neccessary to use all the tables.
SELECT class FROM table_14342367_13 WHERE player = "George W. Gregory"
CREATE TABLE INST, Here is a database schema( table schema);
What was George W. Gregory's class?It is not neccessary to use all the tables.
SELECT COUNT(championship) FROM table_2009095_2 WHERE outcome = "Winner" AND opponents = "Judy Tegart Dalton Lesley Turner Bowrey"
CREATE TABLE INST, Here is a database schema( table schema);
Name the championship for winner and judy tegart dalton lesley turner bowreyIt is not neccessary to use all the tables.
SELECT Ratings FROM table WHERE Host = chris economaki AND Viewers = 12.3 million
CREATE TABLE INST, Here is a database schema( table schema);
What were the ratings for host Chris Economaki who had 12.3 million viewers?.It is not neccessary to use all the tables.
SELECT team FROM table_name_61 WHERE game > 55 AND date = "february 24"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Team that was played against on February 24 and a game after game 55?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Player = patrick macdonald
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a Player of patrick macdonald?.It is not neccessary to use all the tables.
SELECT Loss FROM table WHERE Score = w 4-3
CREATE TABLE INST, Here is a database schema( table schema);
Who lost that has a score of w 4-3?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = windy hill
CREATE TABLE INST, Here is a database schema( table schema);
Which home team has a venue of windy hill?.It is not neccessary to use all the tables.
SELECT Dates administered FROM table WHERE Democrat: Vivian Davis Figures = 36%
CREATE TABLE INST, Here is a database schema( table schema);
What is the date administered when Vivian Davis Figures was at 36%?.It is not neccessary to use all the tables.
SELECT alternate FROM table_name_97 WHERE second = "hubert gründhammer"
CREATE TABLE INST, Here is a database schema( table schema);
What is the alternate of the nation with hubert gründhammer as the second?It is not neccessary to use all the tables.
SELECT Nationality FROM pilot GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the most common nationality of pilots.It is not neccessary to use all the tables.
SELECT country FROM table_name_19 WHERE finish = "t32" AND year_s__won = "1996"
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a Finish of t32 and a Year(s) won of 1996?It is not neccessary to use all the tables.
SELECT MIN Wins FROM table WHERE Goals conceded < 26 AND Draws = 1 AND Goals scored < 74
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest number of wins where goals conceded are below 26, draws are 1 and goals scored are below 74?.It is not neccessary to use all the tables.
SELECT COUNT Original airdate FROM table WHERE Episode # = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the original air date of episode 8? Answer: Dec. 21, 2006.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_33 WHERE home_team = "leicester city"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY?It is not neccessary to use all the tables.
SELECT COUNT Population (July 2005 est.) FROM table WHERE Arable Land (km²) < 16,280 AND Land Area (km²) < 240 AND Country = american samoa (us) AND Population Density (pop per km²) > 291
CREATE TABLE INST, Here is a database schema( table schema);
What is the total population of American Samoa (US) that has less than 16,280 km² arable land, less than 240 km² land area, and has a population density of more than 291?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2177" AND lab.flag = "delta"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose admission year is less than 2177 and lab test abnormal status is delta?It is not neccessary to use all the tables.
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ...
CREATE TABLE INST, Here is a database schema( table schema);
during this year, what are the three most frequent drugs prescribed within the same month to the patients aged 50s after abn react-radiotherapy has been diagnosed?It is not neccessary to use all the tables.
SELECT date FROM table_name_73 WHERE event = "women's individual class 3"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the Women's Individual Class 3?It is not neccessary to use all the tables.
SELECT Transfers In FROM table WHERE Country = hungary
CREATE TABLE INST, Here is a database schema( table schema);
What are the transfers in for Hungary?.It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE area.area LIKE '%compu...
CREATE TABLE INST, Here is a database schema( table schema);
What computing infrastructure courses are offered in Spring or Summer 2012 ?It is not neccessary to use all the tables.
SELECT "Score" FROM table_61190 WHERE "Away team" = 'burnley'
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when Burnley was the away team?It is not neccessary to use all the tables.
SELECT team FROM table_name_31 WHERE league = "national" AND year = 2001
CREATE TABLE INST, Here is a database schema( table schema);
What team has a national league in 2001?It is not neccessary to use all the tables.
SELECT fastest_lap FROM table_26920192_5 WHERE winning_driver = "Giorgio Sanna"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the fastest lap when the winning driver is giorgio sanna?It is not neccessary to use all the tables.
SELECT pick__number FROM table_2897457_3 WHERE nhl_team = "New Jersey Devils"
CREATE TABLE INST, Here is a database schema( table schema);
What is the pick # when the new jersey devils is the nhl team?It is not neccessary to use all the tables.
SELECT venue FROM table_name_10 WHERE result = "loss" AND date = "march 26, 2005"
CREATE TABLE INST, Here is a database schema( table schema);
During the loss on march 26 2005 what was the venue where the match was played?It is not neccessary to use all the tables.
SELECT Raion (district) or City FROM table WHERE Bessarabian Bulgarians = 8,600
CREATE TABLE INST, Here is a database schema( table schema);
What city or Raion (district) has 8,600 Bessarabian Bulgarians?.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_85 WHERE pick = "153"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the nationality of pick of 153It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_16 WHERE home_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
When the home team was fitzroy what did the away team score?It is not neccessary to use all the tables.
SELECT COUNT(vessels) FROM table_name_11 WHERE ship_name = "aqua jewel"
CREATE TABLE INST, Here is a database schema( table schema);
How many vessels are named aqua jewel?It is not neccessary to use all the tables.
SELECT Brand name FROM table WHERE Antibody = Brentuximab vedotin
CREATE TABLE INST, Here is a database schema( table schema);
What is the brand name for the antibody Brentuximab Vedotin?.It is not neccessary to use all the tables.
SELECT ihsaa_football_class FROM table_name_99 WHERE school = "whitko"
CREATE TABLE INST, Here is a database schema( table schema);
Which IHSAA Football Class has a School of whitko?It is not neccessary to use all the tables.
SELECT Set 1 FROM table WHERE Set 3 = 22–25
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for set 1 when the score for set 3 is 22–25?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Date = august 16, 2008
CREATE TABLE INST, Here is a database schema( table schema);
What is the time associated with August 16, 2008?.It is not neccessary to use all the tables.
SELECT State FROM table WHERE Rank < 10 AND City = denver
CREATE TABLE INST, Here is a database schema( table schema);
What is the state of the city of denver, which has a rank less than 10?.It is not neccessary to use all the tables.
SELECT A.G. FROM table WHERE D3&4 = 46 AND Transmitter = seaham
CREATE TABLE INST, Here is a database schema( table schema);
What is the A.G. value associated with D3&4 of 46 and transmitter of Seaham?.It is not neccessary to use all the tables.
SELECT "Record" FROM table_32704 WHERE "Event" = 'ufc 67'
CREATE TABLE INST, Here is a database schema( table schema);
What is his record at ufc 67?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 14.13 (97)
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the match where the home team scored 14.13 (97).It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_56 WHERE lost = 4 AND played > 28
CREATE TABLE INST, Here is a database schema( table schema);
What is the average points for a team that lost 4 and played more than 28 games?It is not neccessary to use all the tables.
SELECT 2006 First Time FROM table WHERE 2009 All = 72% AND 2007 First Time = 85%
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2006 first time percentage of the exam with a 2009 all percentage of 72% and a 2007 first time percentage of 85%?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Lane < 4 AND Nationality = spain
CREATE TABLE INST, Here is a database schema( table schema);
Spain had what time with lanes smaller than 4?.It is not neccessary to use all the tables.
SELECT Track FROM table WHERE Year = 1982
CREATE TABLE INST, Here is a database schema( table schema);
What's the track for 1982?.It is not neccessary to use all the tables.
SELECT Sport FROM table WHERE Event = 94kg men's weightlifting
CREATE TABLE INST, Here is a database schema( table schema);
Which sport has 94kg men's weightlifting as one of its events?.It is not neccessary to use all the tables.
SELECT Segment B FROM table WHERE Segment C = Standby Generators (Part 1)
CREATE TABLE INST, Here is a database schema( table schema);
What are the titles of segment b when segment c is standby generators (part 1)?.It is not neccessary to use all the tables.
SELECT COUNT(winning_driver) FROM table_19850806_3 WHERE winning_team = "Bryan Herta Autosport"
CREATE TABLE INST, Here is a database schema( table schema);
How many winning drivers are there when the winning team is Bryan herta autosport?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_85 WHERE date = "22 nov 1989" AND away_team = "bath city"
CREATE TABLE INST, Here is a database schema( table schema);
What is Home Team when Date is "22 Nov 1989" and when Away Team is "Bath City"?It is not neccessary to use all the tables.
SELECT date FROM table_name_19 WHERE opponent = "@ philadelphia phillies" AND attendance = "20,072"
CREATE TABLE INST, Here is a database schema( table schema);
when has an Opponent of @ philadelphia phillies and an Attendance of 20072?It is not neccessary to use all the tables.
SELECT COUNT(calculated_activity___bq__) FROM table_26211058_1 WHERE specimen_weight_size = "1000 g / 8.79 cm"
CREATE TABLE INST, Here is a database schema( table schema);
If the specimen weight/size is 1000 g / 8.79 cm what is the calculated activity?It is not neccessary to use all the tables.
SELECT AVG(gold) FROM table_name_2 WHERE nation = "hungary" AND bronze > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Gold when Nation is Hungary and when Bronze is greater than 1?It is not neccessary to use all the tables.
SELECT 3 credits FROM table WHERE Hand = theoretical return
CREATE TABLE INST, Here is a database schema( table schema);
What does a hand of Theoretical return have as a 3 credit?.It is not neccessary to use all the tables.
SELECT poles FROM table_name_57 WHERE racing_team = "status grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
How many poles does status grand prix have?It is not neccessary to use all the tables.
SELECT MAX(founded) FROM table_255188_1 WHERE institution = "Piedmont College"
CREATE TABLE INST, Here is a database schema( table schema);
When was Piedmont College founded?It is not neccessary to use all the tables.
SELECT MAX Game FROM table WHERE Location Attendance = Conseco Fieldhouse 14,486
CREATE TABLE INST, Here is a database schema( table schema);
At what game number was the attendance at Conseco Fieldhouse 14,486?.It is not neccessary to use all the tables.
SELECT championship FROM table_name_77 WHERE year < 1952 AND race_title = "grand prix watkins glen" AND drivers = "miles collier"
CREATE TABLE INST, Here is a database schema( table schema);
Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship?It is not neccessary to use all the tables.
SELECT Giant AS slalom FROM table_name_34 WHERE overall = 25
CREATE TABLE INST, Here is a database schema( table schema);
Which giant slalom had an Overall number of 25?It is not neccessary to use all the tables.
SELECT Manner of departure FROM table WHERE Date of appointment = 26 january
CREATE TABLE INST, Here is a database schema( table schema);
Name the manner of departyre for 26 january date of appointment.It is not neccessary to use all the tables.
SELECT set_2 FROM table_name_5 WHERE set_3 = "25–20" AND time = "13:45"
CREATE TABLE INST, Here is a database schema( table schema);
Which Set 2 has a Set 3 of 25–20 and a Time of 13:45?It is not neccessary to use all the tables.
SELECT Group 12 FROM table WHERE Group 10 = Persikutim East Kutai
CREATE TABLE INST, Here is a database schema( table schema);
Who played in group 12 when persikutim east kutai played in group 10?.It is not neccessary to use all the tables.
SELECT Occupation FROM table WHERE Residence = red bank
CREATE TABLE INST, Here is a database schema( table schema);
What job is at red bank?.It is not neccessary to use all the tables.
SELECT MIN(sipe_sipe_municipality) FROM table_2509113_2 WHERE language = "Quechua"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Sipe Sipe Municipality minimum if the language is Quechua?It is not neccessary to use all the tables.
SELECT event FROM table_name_70 WHERE round = "1" AND record = "2–0"
CREATE TABLE INST, Here is a database schema( table schema);
Which Event has a Round of 1 and a Record of 2–0?It is not neccessary to use all the tables.
SELECT state FROM table_name_43 WHERE name = "li" AND title = "marquis"
CREATE TABLE INST, Here is a database schema( table schema);
In which state did Marquis Li rule?It is not neccessary to use all the tables.
SELECT Saturday Day Seven FROM table WHERE Thursday Day Five = ሐሙስ hamus
CREATE TABLE INST, Here is a database schema( table schema);
What is saturday day seven when thursday day five is ሐሙስ hamus?.It is not neccessary to use all the tables.
SELECT circuit FROM table_name_30 WHERE round > 5
CREATE TABLE INST, Here is a database schema( table schema);
Which circuit had a round larger than 5?It is not neccessary to use all the tables.
SELECT Beam FROM table WHERE Model = 570
CREATE TABLE INST, Here is a database schema( table schema);
Which Beam has a Model of 570?.It is not neccessary to use all the tables.
SELECT SUM Rank FROM table WHERE Silver < 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the rank when silver is less than 0?.It is not neccessary to use all the tables.
SELECT MIN(founded) FROM table_28253870_1
CREATE TABLE INST, Here is a database schema( table schema);
Name the least foundedIt is not neccessary to use all the tables.
SELECT Date Aired FROM table WHERE Episode = 1.13
CREATE TABLE INST, Here is a database schema( table schema);
When did the episode 1.13 air for the first time?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM list
CREATE TABLE INST, Here is a database schema( table schema);
Find the number of students in total.It is not neccessary to use all the tables.
SELECT goals_against FROM table_name_44 WHERE goal_difference < 43 AND wins < 13 AND losses > 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of goals against when the goal difference was less than 43 the Wins less than 13 and losses more than 14?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = 10/18/1947
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of 10/18/1947?.It is not neccessary to use all the tables.
SELECT church FROM table_name_71 WHERE stops = "27"
CREATE TABLE INST, Here is a database schema( table schema);
Which Church has 27 stops?It is not neccessary to use all the tables.
SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers)
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of companies whose revenue is greater than the average revenue of all companies.It is not neccessary to use all the tables.
SELECT Centennial FROM table WHERE Information = Location
CREATE TABLE INST, Here is a database schema( table schema);
Name the centennial for location.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Venue = junction oval
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the away team at Junction Oval?.It is not neccessary to use all the tables.
SELECT District FROM table WHERE Party = republican AND Results = retired to run for governor democratic gain
CREATE TABLE INST, Here is a database schema( table schema);
What district is the incumbent Republican and the incumbent retired to run for governor democratic gain?.It is not neccessary to use all the tables.
SELECT final_episode FROM table_11210576_3 WHERE position = "DEA Agent"
CREATE TABLE INST, Here is a database schema( table schema);
What was the final episode for Dea Agent?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Circuit = syracuse
CREATE TABLE INST, Here is a database schema( table schema);
Which date was the syracuse circuit?.It is not neccessary to use all the tables.
SELECT Fourth place FROM table WHERE Year = 1966
CREATE TABLE INST, Here is a database schema( table schema);
What is the Fourth place with a Year that is 1966?.It is not neccessary to use all the tables.
SELECT total FROM table_name_65 WHERE clubs = 10 AND place > 1
CREATE TABLE INST, Here is a database schema( table schema);
What total has 10 as the clubs with a place greater than 1?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = richmond
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent when Richmond played as the home team?.It is not neccessary to use all the tables.
SELECT Nickname FROM table WHERE Institution = columbia university
CREATE TABLE INST, Here is a database schema( table schema);
What is the nickname of Columbia University?.It is not neccessary to use all the tables.
SELECT COUNT KEI FROM table WHERE Economic Incentive Regime = 2.56
CREATE TABLE INST, Here is a database schema( table schema);
How many KEI catagories are listed when the economic incentive regime is 2.56? .It is not neccessary to use all the tables.
SELECT AVG(bronze) FROM table_name_86 WHERE total = 47
CREATE TABLE INST, Here is a database schema( table schema);
What was the bronze medal count of the team that finished with 47 total medals?It is not neccessary to use all the tables.
SELECT name AS origin FROM table_16799784_9 WHERE longitude = "355.0E"
CREATE TABLE INST, Here is a database schema( table schema);
At the longitude of 355.0e what is the name origin?It is not neccessary to use all the tables.
SELECT MAX Bronze FROM table WHERE Gold > 22 AND Rank < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many bronzes for nations with over 22 golds and ranked under 2?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Language(s) = Japanese
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for japanese.It is not neccessary to use all the tables.
SELECT origin FROM Flight GROUP BY origin ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which origin has most number of flights?It is not neccessary to use all the tables.
SELECT MAX(a_score) FROM table_name_38 WHERE total < 15.95 AND position < 7 AND b_score > 8.225
CREATE TABLE INST, Here is a database schema( table schema);
What is the A score for the person with a total less than 15.95 position less than 7 and B score more than 8.225?It is not neccessary to use all the tables.