sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT team_name FROM table_name_92 WHERE races = 10
CREATE TABLE INST, Here is a database schema( table schema);
Which team completed 10 races?It is not neccessary to use all the tables.
SELECT Candidates FROM table WHERE Incumbent = Carl Vinson
CREATE TABLE INST, Here is a database schema( table schema);
Which district is associated with the incumbent Carl Vinson?.It is not neccessary to use all the tables.
SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id ORDER BY trust LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of the target user with the lowest trust score.It is not neccessary to use all the tables.
SELECT chassis FROM table_name_76 WHERE engine = "alfa romeo flat-12"
CREATE TABLE INST, Here is a database schema( table schema);
Which chassis has an Alfa Romeo flat-12 engine.It is not neccessary to use all the tables.
SELECT result FROM table_name_91 WHERE opponent = "boston patriots"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when they played the Boston Patriots?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_83 WHERE record = "25-24"
CREATE TABLE INST, Here is a database schema( table schema);
For record 25-24 what is the sum of attendance?It is not neccessary to use all the tables.
SELECT COUNT("driver") FROM table_204_976 WHERE "constructor" = 'cooper-climax'
CREATE TABLE INST, Here is a database schema( table schema);
how many racers had cooper climax as their constructor ?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Lineup = start AND Date = 2008-06-17
CREATE TABLE INST, Here is a database schema( table schema);
What is the location on 2008-06-17 when the lineup was start?.It is not neccessary to use all the tables.
SELECT AVG Games Played FROM table WHERE Team = ottawa hockey club AND Wins > 5
CREATE TABLE INST, Here is a database schema( table schema);
Which average games played number has the Ottawa Hockey Club as a team and a number of wins bigger than 5?.It is not neccessary to use all the tables.
SELECT Location Attendance FROM table WHERE Date = November 18
CREATE TABLE INST, Here is a database schema( table schema);
What is every value for location attendance on date of November 18?.It is not neccessary to use all the tables.
SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'
CREATE TABLE INST, Here is a database schema( table schema);
Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?It is not neccessary to use all the tables.
SELECT Team 1 FROM table WHERE 2nd leg = 3-0
CREATE TABLE INST, Here is a database schema( table schema);
What is the team 1 with a 3-0 2nd leg?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 26–14–9
CREATE TABLE INST, Here is a database schema( table schema);
What was the date the record became 26–14–9?.It is not neccessary to use all the tables.
SELECT position FROM table_name_89 WHERE school_club_team = "illinois"
CREATE TABLE INST, Here is a database schema( table schema);
Which Position has a School/Club Team of illinois?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.long_title = "Severe sepsis"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose insurance is private and whose diagnosis long title is severe sepsis.It is not neccessary to use all the tables.
SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1834"
CREATE TABLE INST, Here is a database schema( table schema);
What 2nd Party has an Election of 1834?It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_5 WHERE runner_up = "portugal" AND third_place = "italy" AND best_goalkeeper = "nuno hidalgo"
CREATE TABLE INST, Here is a database schema( table schema);
What year was the runner-up Portugal with Italy in third place and the gold keeper Nuno Hidalgo?It is not neccessary to use all the tables.
SELECT record FROM table_name_65 WHERE date = "july 10"
CREATE TABLE INST, Here is a database schema( table schema);
what's the record on july 10?It is not neccessary to use all the tables.
SELECT headquarter FROM table_name_49 WHERE type = "independent online news portal"
CREATE TABLE INST, Here is a database schema( table schema);
What is Headquarter when Type is Independent Online News Portal?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Home team score = 13.11 (89)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team that had a score of 13.11 (89)?.It is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE NHL team = Chicago Black Hawks
CREATE TABLE INST, Here is a database schema( table schema);
what college has nhl team chicago black hawks?.It is not neccessary to use all the tables.
SELECT MAX Number of seats FROM table WHERE Make = mci AND Quantity > 32
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest number of seats with more than 32 of a MCI make?.It is not neccessary to use all the tables.
SELECT MIN(touchdowns) FROM table_name_79 WHERE receptions = 51 AND games_started < 16
CREATE TABLE INST, Here is a database schema( table schema);
With games started smaller than 16 plus receptions of 51 what is the smallest amount of touchdowns listed?It is not neccessary to use all the tables.
SELECT 08 AS _pts FROM table_22011138_7 WHERE pos = 3
CREATE TABLE INST, Here is a database schema( table schema);
If the POS is 3 what is the 08 points?It is not neccessary to use all the tables.
SELECT COUNT Goals FROM table WHERE Points = 28 AND Matches > 11
CREATE TABLE INST, Here is a database schema( table schema);
How many goals have 28 as the points, and matches greater than 11?.It is not neccessary to use all the tables.
SELECT MIN Kurdistan Democratic Party FROM table WHERE Total Kurdistan List = 10
CREATE TABLE INST, Here is a database schema( table schema);
Name the kurdistan democratic party for kurdistan list being 10.It is not neccessary to use all the tables.
SELECT COUNT("Player") FROM table_17074 WHERE "Hometown" = 'Delray Beach, Florida'
CREATE TABLE INST, Here is a database schema( table schema);
How many players are from Delray Beach, Florida?It is not neccessary to use all the tables.
SELECT college FROM table_name_50 WHERE pick < 160 AND round > 2
CREATE TABLE INST, Here is a database schema( table schema);
What college did the player drafted after round 2 before pick 160 attend?It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_56 WHERE artist = "every little thing" AND rank < 10
CREATE TABLE INST, Here is a database schema( table schema);
What was the first year that the artist of every little thing ranked lower than 10?It is not neccessary to use all the tables.
SELECT MIN Number FROM table WHERE Weight (st, lb) = 10-5
CREATE TABLE INST, Here is a database schema( table schema);
What's the number of the horse weighting 10-5?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Award = drama desk award AND Category = outstanding sound design
CREATE TABLE INST, Here is a database schema( table schema);
Which production won the drama desk award as well as the category of outstanding sound design?.It is not neccessary to use all the tables.
SELECT MIN(grid) FROM table_name_30 WHERE laps > 78
CREATE TABLE INST, Here is a database schema( table schema);
With Laps greater than 78 what is the lowest Grid?It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Opponent = cleveland browns AND Attendance > 54,205
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest week for Cleveland Browns with 54,205 in attendance?.It is not neccessary to use all the tables.
SELECT district FROM table_1342292_2 WHERE first_elected = 1938
CREATE TABLE INST, Here is a database schema( table schema);
what's the district  with first elected being 1938It is not neccessary to use all the tables.
SELECT Course FROM table WHERE Type = flat stage AND Date = 4 september
CREATE TABLE INST, Here is a database schema( table schema);
Which course has a flat stage on 4 September?.It is not neccessary to use all the tables.
SELECT High points FROM table WHERE Date = December 18
CREATE TABLE INST, Here is a database schema( table schema);
Who did the high points in the game played on December 18?.It is not neccessary to use all the tables.
SELECT COUNT Avg/G FROM table WHERE Name = cameron dantley AND Loss < 35
CREATE TABLE INST, Here is a database schema( table schema);
What's cameron dantley's total avg/g for loss less than 35?.It is not neccessary to use all the tables.
SELECT MAX(game) FROM table_27722734_7 WHERE date = "December 1"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most game for december 1It is not neccessary to use all the tables.
SELECT city FROM table_name_92 WHERE icao = "wadd"
CREATE TABLE INST, Here is a database schema( table schema);
Which city's ICAO is WADD?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Visitor = st. louis
CREATE TABLE INST, Here is a database schema( table schema);
Name the record when the visitor is st. louis.It is not neccessary to use all the tables.
SELECT english_title FROM table_name_96 WHERE romanization = "lee jae-su-eui nan"
CREATE TABLE INST, Here is a database schema( table schema);
What English title for the Romanization of lee jae-su-eui nan?It is not neccessary to use all the tables.
SELECT MIN Seats FROM table WHERE % change = -3.7 AND % votes > 4.7
CREATE TABLE INST, Here is a database schema( table schema);
What are the fewest seats with a -3.7% change and more than 4.7% votes?.It is not neccessary to use all the tables.
SELECT MIN(opponents) FROM table_18847692_2
CREATE TABLE INST, Here is a database schema( table schema);
What is the minimum number of opponents?It is not neccessary to use all the tables.
SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification"
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_3 WHERE date = "21 jul 2007"
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has a date 21 jul 2007?It is not neccessary to use all the tables.
SELECT MAX Silver FROM table WHERE Total = 3 AND Bronze > 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest silver total for nations with 3 total and over 2 bronze?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE To par = −6
CREATE TABLE INST, Here is a database schema( table schema);
What Player's To par is −6?.It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program, program_course, semester WHERE course.course_id = course_offering.course_id AND program_course.category LIKE '%Other%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
CREATE TABLE INST, Here is a database schema( table schema);
Which courses count for Other next semester ?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE District = Kentucky 8
CREATE TABLE INST, Here is a database schema( table schema);
What was the result in the election in the Kentucky 8 district? .It is not neccessary to use all the tables.
SELECT Points FROM table WHERE Year > 1950 AND Engine = maserati straight-6
CREATE TABLE INST, Here is a database schema( table schema);
What points larger than 1950 has a maserati straight-6 engine?.It is not neccessary to use all the tables.
SELECT position FROM table_name_1 WHERE player = "drew callander"
CREATE TABLE INST, Here is a database schema( table schema);
What position does Drew Callander play?It is not neccessary to use all the tables.
SELECT bbi FROM table_28846752_9 WHERE economy = "5.68"
CREATE TABLE INST, Here is a database schema( table schema);
What is the BBI whent the economy is 5.68?It is not neccessary to use all the tables.
SELECT Cmp-Att-Int FROM table WHERE GP-GS = 3-0
CREATE TABLE INST, Here is a database schema( table schema);
Which Cmp-Att-Int has a GP-GS of 3-0?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Original Season = Fresh Meat AND Gender = Female
CREATE TABLE INST, Here is a database schema( table schema);
Who was the female contestant on the Original season of Fresh Meat?.It is not neccessary to use all the tables.
SELECT Award FROM table WHERE Result = nominated AND Year = 2003
CREATE TABLE INST, Here is a database schema( table schema);
Which Award has a Result of nominated, and a Year of 2003?.It is not neccessary to use all the tables.
SELECT COUNT Pl GP FROM table WHERE Pick # = 49 AND Reg GP < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total PI GP of the player with a pick number 49 and a reg gp less than 0?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Chief Judge = peter agre AND Award = 3rd
CREATE TABLE INST, Here is a database schema( table schema);
What student won 3rd with Peter Agre as Chief Judge?.It is not neccessary to use all the tables.
SELECT founder FROM manufacturers WHERE name = 'Sony'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the founder of Sony?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_82 WHERE home_team = "north melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What was North Melbourne's score when they were the home team?It is not neccessary to use all the tables.
SELECT Accreditation type FROM table WHERE Company name = vodacom group pty ltd (vodafone group)
CREATE TABLE INST, Here is a database schema( table schema);
What is the accreditation type of Vodacom Group PTY LTD (Vodafone group)?.It is not neccessary to use all the tables.
SELECT Partner FROM table WHERE Opponents = wayne arthurs sandon stolle
CREATE TABLE INST, Here is a database schema( table schema);
Which Partner has an Opponents of wayne arthurs sandon stolle?.It is not neccessary to use all the tables.
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'
CREATE TABLE INST, Here is a database schema( table schema);
Find the name and age of the person who is a friend of both Dan and Alice.It is not neccessary to use all the tables.
SELECT name FROM table_11585313_1 WHERE date_of_death† = "01-04-1954"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the person whose date of death is 01-04-1954?It is not neccessary to use all the tables.
SELECT ground FROM table_name_83 WHERE opponent = "aston villa"
CREATE TABLE INST, Here is a database schema( table schema);
On which ground did the team play Aston Villa?It is not neccessary to use all the tables.
SELECT MAX Holding Companies FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest number of holding companies?.It is not neccessary to use all the tables.
SELECT MAX(game) FROM table_name_64 WHERE date = "april 21"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest game that has april 21 as the date?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'UA'
CREATE TABLE INST, Here is a database schema( table schema);
list all flights from BOSTON to SAN FRANCISCO on UAIt is not neccessary to use all the tables.
SELECT stations FROM table_name_58 WHERE managed_by = "tramlink" AND zone = 5 AND platforms = 1
CREATE TABLE INST, Here is a database schema( table schema);
Name the stations for zone 5 and 1 platform by tramlinkIt is not neccessary to use all the tables.
SELECT attendance FROM table_13258972_2 WHERE record = "1-1"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance when the record was 1-1?It is not neccessary to use all the tables.
SELECT time FROM table_name_96 WHERE grid < 8 AND rider = "troy bayliss"
CREATE TABLE INST, Here is a database schema( table schema);
What is the time of Troy Bayliss with less than 8 grids?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = september 14, 2003
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has September 14, 2003 as the date?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_2 WHERE week = 1
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance during the week 1 match?It is not neccessary to use all the tables.
SELECT COUNT Away team score FROM table WHERE Home team score = 7.8 (50)
CREATE TABLE INST, Here is a database schema( table schema);
When the home team scored 7.8 (50), how many away team scores were recorded?.It is not neccessary to use all the tables.
SELECT COUNT Time to ft (m) at 40° (seconds) FROM table WHERE Shell (lb) = 16 AND Max. height (ft) < 22,000
CREATE TABLE INST, Here is a database schema( table schema);
What is the amount of time (sum) at 40° that it takes a 16 lb shell to reach a maximum of no more than 22,000 ft?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Tie no = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the game with a tie no of 6?.It is not neccessary to use all the tables.
SELECT COUNT Production code FROM table WHERE U.S. viewers (millions) = 4.69
CREATE TABLE INST, Here is a database schema( table schema);
How many different production codes are there for the episode with 4.69 million US viewers?.It is not neccessary to use all the tables.
SELECT frequency_mhz FROM table_name_7 WHERE call_sign = "k218be"
CREATE TABLE INST, Here is a database schema( table schema);
Which Frequency MHz has a Call Sign of K218BE?It is not neccessary to use all the tables.
SELECT MIN Gold FROM table WHERE Silver = 2 AND Sport = electronic sports
CREATE TABLE INST, Here is a database schema( table schema);
I want the lowest Gold for silver being 2 and electronic sports.It is not neccessary to use all the tables.
SELECT Best FROM table WHERE Qual 1 = 59.448
CREATE TABLE INST, Here is a database schema( table schema);
What is the best time for a team with a first-qualifying time of 59.448?.It is not neccessary to use all the tables.
SELECT score FROM table_name_3 WHERE record = "31–37–9"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the game with a Record of 31–37–9?It is not neccessary to use all the tables.
SELECT score FROM table_name_92 WHERE place = "t6" AND player = "jack nicklaus"
CREATE TABLE INST, Here is a database schema( table schema);
What score did Jack Nicklaus have when he placed t6?It is not neccessary to use all the tables.
SELECT MIN(grid) FROM table_name_88 WHERE time_retired = "clutch" AND driver = "peter collins" AND laps < 26
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest grid when the time retired is clutch the driver is peter collins and the laps is smaller than 26?It is not neccessary to use all the tables.
SELECT score FROM table_name_64 WHERE visitor = "buffalo" AND date = "april 28"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game on April 28 where Buffalo were the visiting team?It is not neccessary to use all the tables.
SELECT T1.lat, T1.long, T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id ORDER BY T2.duration LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the latitude longitude city of the station from which the shortest trip started?It is not neccessary to use all the tables.
SELECT COUNT(week) FROM table_name_95 WHERE attendance = 61 OFFSET 985
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of week number(s) had an attendance of 61985?It is not neccessary to use all the tables.
SELECT COUNT Laps FROM table WHERE Grid = 15
CREATE TABLE INST, Here is a database schema( table schema);
How many Laps have a Grid of 15?.It is not neccessary to use all the tables.
SELECT SUM("Week") FROM table_39695 WHERE "Date" = 'october 21, 1974' AND "Attendance" < '50,623'
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the weeks that games occured on october 21, 1974 and less than 50,623 fans attended?It is not neccessary to use all the tables.
SELECT Category FROM table WHERE Director(s) = tom shankland
CREATE TABLE INST, Here is a database schema( table schema);
what category is for tom shankland, director?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team = richmond
CREATE TABLE INST, Here is a database schema( table schema);
When richmond was the Away team what was the score of the home team?.It is not neccessary to use all the tables.
SELECT AVG(yards) FROM table_name_2 WHERE long < 3
CREATE TABLE INST, Here is a database schema( table schema);
Which Yards has a Long smaller than 3?It is not neccessary to use all the tables.
SELECT family FROM table_287159_1 WHERE genitive = "Lyncis /ˈlɪnsɨs/"
CREATE TABLE INST, Here is a database schema( table schema);
What is the family of the constellation that has lyncis /ˈlɪnsɨs/ as genitive?It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE Date = october 31
CREATE TABLE INST, Here is a database schema( table schema);
What was the stadium for the game held on October 31?.It is not neccessary to use all the tables.
SELECT COUNT(gold) FROM table_name_40 WHERE total < 8 AND silver < 1 AND rank > 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the gold number when the total is less than 8 silver less than 1 and the rank is more than 7?It is not neccessary to use all the tables.
SELECT worst_dancer_s_ FROM table_name_91 WHERE dance = "jive"
CREATE TABLE INST, Here is a database schema( table schema);
What's the worst dance of jive dancer(s)?It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Home = detroit red wings AND Date = march 30
CREATE TABLE INST, Here is a database schema( table schema);
What visitor has detroit red wings as the home, and march 30 as the date?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent = andrei pavel
CREATE TABLE INST, Here is a database schema( table schema);
What was the score against andrei pavel?.It is not neccessary to use all the tables.
SELECT opponent_in_the_final FROM table_name_33 WHERE year = 1942
CREATE TABLE INST, Here is a database schema( table schema);
What is Opponent In The Final when Year is "1942"?It is not neccessary to use all the tables.
SELECT winner FROM table_11621915_1 WHERE purse__$__ > 964017.2297960471 AND date = "May 28"
CREATE TABLE INST, Here is a database schema( table schema);
what's the winner with purse( $ ) value of bigger than 964017.2297960471 and date value of may 28It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Series = 3-2
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent with a series of 3-2?.It is not neccessary to use all the tables.
SELECT Third-place FROM table WHERE Season = 2001
CREATE TABLE INST, Here is a database schema( table schema);
Who was placed third in 2001?.It is not neccessary to use all the tables.