sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT "Time" FROM table_60600 WHERE "Arranger(s)" = 'roz'
CREATE TABLE INST, Here is a database schema( table schema);
What are the lengths of the tracks arranged by ROZ?It is not neccessary to use all the tables.
SELECT gname FROM plays_games AS T1 JOIN video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY SUM(hours_played) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the game name that has most number of hours played.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Capacity > 15,000 AND Stadium = tapiolan urheilupuisto
CREATE TABLE INST, Here is a database schema( table schema);
What is the Location of the Tapiolan Urheilupuisto Stadium with a Capacity or more than 15,000?.It is not neccessary to use all the tables.
SELECT COUNT GICS Sector FROM table WHERE Free float = 0.2391
CREATE TABLE INST, Here is a database schema( table schema);
How many GICS sectors have a free float of 0.2391?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Handler = mike jackson AND Event = indianapolis boat, sport & travel show
CREATE TABLE INST, Here is a database schema( table schema);
On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show?.It is not neccessary to use all the tables.
SELECT COUNT(platform) FROM table_28178595_2 WHERE character = "Nanaly Fletch"
CREATE TABLE INST, Here is a database schema( table schema);
How many platforms have nanaly fletch as the character?It is not neccessary to use all the tables.
SELECT Garfield Episode 1 FROM table WHERE U.S. Acres Episode = The Orson Awards
CREATE TABLE INST, Here is a database schema( table schema);
what is the 2nd garfield episode where u.s. acres episode is the orson awards.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Score = 46-82
CREATE TABLE INST, Here is a database schema( table schema);
What is the Time with a Score that is 46-82?.It is not neccessary to use all the tables.
SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)
CREATE TABLE INST, Here is a database schema( table schema);
What is the average credit score for customers who have taken a loan?It is not neccessary to use all the tables.
SELECT 1600 kWh/kWp•y FROM table WHERE 1000 kWh/kWp•y = 26.0
CREATE TABLE INST, Here is a database schema( table schema);
At the rate where 1000 kwh/kwp•y is 26.0, what is the value of 1600 kwh/kwp•y?.It is not neccessary to use all the tables.
SELECT MIN Silver FROM table WHERE Bronze < 20 AND Total = 1 AND Sport = water polo AND Gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?.It is not neccessary to use all the tables.
SELECT regular_season FROM table_name_64 WHERE league = "npsl" AND year = "2008"
CREATE TABLE INST, Here is a database schema( table schema);
WHICH Regular Season has a League of npsl and a Year of 2008?It is not neccessary to use all the tables.
SELECT COUNT(pick__number) FROM table_name_88 WHERE name = "jaimie thomas" AND round < 7
CREATE TABLE INST, Here is a database schema( table schema);
Pick # that has a Name of jaimie thomas and a Round smaller than 7 is how many numbers?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Tie no = 13
CREATE TABLE INST, Here is a database schema( table schema);
On what date was Tie #13 played?.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Away team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
How many points did the Away team from Geelong score?.It is not neccessary to use all the tables.
SELECT d_44 FROM table_name_63 WHERE d_46 = "d 31"
CREATE TABLE INST, Here is a database schema( table schema);
Name the D 44 when it has a D 46 of d 31It is not neccessary to use all the tables.
SELECT length FROM table_1245148_1 WHERE track_name = "Michigan International Speedway"
CREATE TABLE INST, Here is a database schema( table schema);
What is the length of the track named michigan international speedway?It is not neccessary to use all the tables.
SELECT outcome FROM table_name_39 WHERE score = "6–4, 6–1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the outcome of the match with a score of 6–4 6–1?It is not neccessary to use all the tables.
SELECT Area served FROM table WHERE On-air ID = abc canberra
CREATE TABLE INST, Here is a database schema( table schema);
Name the area served for on-air ID of abc canberra.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = new zealand breakers
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team during the game when the home team was the new zealand breakers?.It is not neccessary to use all the tables.
SELECT agg FROM table_name_49 WHERE opponent = "koper"
CREATE TABLE INST, Here is a database schema( table schema);
What was the aggregate total for the match against Koper?It is not neccessary to use all the tables.
SELECT record FROM table_name_90 WHERE nfl_recap = "recap" AND opponent = "new england patriots"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record for the game against the New England Patriots with a recap?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Score = W 108–93 (OT)
CREATE TABLE INST, Here is a database schema( table schema);
What was the record when the score was w 108–93 (ot)?.It is not neccessary to use all the tables.
SELECT release_date FROM table_name_22 WHERE sspec_number = "slbze(c0)slbr8"
CREATE TABLE INST, Here is a database schema( table schema);
What is Release Date when sSpec Number is SLBZE(C0)SLBR8?It is not neccessary to use all the tables.
SELECT English Name FROM table WHERE abbreviation = MTC
CREATE TABLE INST, Here is a database schema( table schema);
Which colleges have the english abbreviation MTC?.It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Player = hale irwin AND Wins < 32
CREATE TABLE INST, Here is a database schema( table schema);
What is the low rank for hale irwin with under 32 wins?.It is not neccessary to use all the tables.
SELECT Branding FROM table WHERE Power kW = 5kW AND Station Type = Relay
CREATE TABLE INST, Here is a database schema( table schema);
When relay is the station type and 5kw is the power kw what is the branding?.It is not neccessary to use all the tables.
SELECT COUNT("Year") FROM table_73489 WHERE "Score in the final" = '6–3, 6–2' AND "Surface" = 'Hard'
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of year for 6 3, 6 2 hard surfaceIt is not neccessary to use all the tables.
SELECT AVG Total FROM table WHERE Nation = soviet union AND Gold > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?.It is not neccessary to use all the tables.
SELECT COUNT Season FROM table WHERE For = Deccan Chargers AND Bowler = Amit Mishra
CREATE TABLE INST, Here is a database schema( table schema);
How many sesason were there when for is deccan chargers and bowler is amit mishra?.It is not neccessary to use all the tables.
SELECT school FROM table_name_7 WHERE pick > 225 AND player = "victor jones"
CREATE TABLE INST, Here is a database schema( table schema);
What is the school of Victor Jones who was picked further than number 225?It is not neccessary to use all the tables.
SELECT "Affiliation" FROM table_4014 WHERE "Enrollment" = '27209'
CREATE TABLE INST, Here is a database schema( table schema);
Name the affiliation for 27209 enrollmentIt is not neccessary to use all the tables.
SELECT week__number FROM table_name_18 WHERE original_artist = "the beatles" AND theme = "the beatles"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Week # when the Beatles were the original artist and the theme was The Beatles?It is not neccessary to use all the tables.
SELECT Australian role FROM table WHERE UN Operation name = UNAMA
CREATE TABLE INST, Here is a database schema( table schema);
What is Australia's role in the UN operation Unama?.It is not neccessary to use all the tables.
SELECT most_laps_led FROM table_29690363_3 WHERE fastest_lap = "Brandon Wagner"
CREATE TABLE INST, Here is a database schema( table schema);
Who led the most laps when brandon wagner had the fastest lap?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE To par = +2
CREATE TABLE INST, Here is a database schema( table schema);
Which player had a to par score of +2?.It is not neccessary to use all the tables.
SELECT date FROM table_name_10 WHERE away_team = "st kilda"
CREATE TABLE INST, Here is a database schema( table schema);
When st kilda played as the Away team which date was that?It is not neccessary to use all the tables.
SELECT MAX("Year Set") FROM table_50793 WHERE "Event" = '100m freestyle'
CREATE TABLE INST, Here is a database schema( table schema);
What was the latest year that had a 100m freestyle?It is not neccessary to use all the tables.
SELECT Unit test FROM table WHERE MSDN integration = full AND Projects templates = yes
CREATE TABLE INST, Here is a database schema( table schema);
Which Unit test has a MSDN integration of full, and a Projects templates of yes?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE IATA = blq
CREATE TABLE INST, Here is a database schema( table schema);
What country is the IATA BLQ located in?.It is not neccessary to use all the tables.
SELECT dob FROM table_name_22 WHERE surname = "collins"
CREATE TABLE INST, Here is a database schema( table schema);
When is Collins' DOB?It is not neccessary to use all the tables.
SELECT * FROM table_train_175 WHERE fasting_serum_triglycerides > 400 OR (fasting_serum_triglycerides > 250 AND lipid_lowering_therapy = 0)
CREATE TABLE INST, Here is a database schema( table schema);
has fasting serum triglycerides > 400 mg / dl ( > 4.52 mmol / l ) or > 250 mg / dl ( > 2.85 mmol / l ) if not on stable lipid _ lowering therapy for at least 4 weeks prior to screeningIt is not neccessary to use all the tables.
SELECT "Status" FROM table_72773 WHERE "#" = 'K-223'
CREATE TABLE INST, Here is a database schema( table schema);
What is the status of vessel number K-223?It is not neccessary to use all the tables.
SELECT marriage FROM table_name_67 WHERE death = "29 december 1829"
CREATE TABLE INST, Here is a database schema( table schema);
What is the marriage date for the Habsburg-Lorraine house member who died 29 December 1829?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Seasons = 1981 AND Order > 807
CREATE TABLE INST, Here is a database schema( table schema);
what is the name for seasons 1981 and an order more than 807?.It is not neccessary to use all the tables.
SELECT Snatch, Clean_Jerk FROM body_builder ORDER BY Snatch
CREATE TABLE INST, Here is a database schema( table schema);
List the snatch score and clean jerk score of body builders in ascending order of snatch score.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_79 WHERE record = "39-19"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the Opponent when there is a Record of 39-19?It is not neccessary to use all the tables.
SELECT "Score" FROM table_49552 WHERE "Home team" = 'cairns taipans'
CREATE TABLE INST, Here is a database schema( table schema);
what is the score when the home team is cairns taipans?It is not neccessary to use all the tables.
SELECT Wii Points FROM table WHERE Title and Source = Tsūshin Taikyoku: Igo Dōjō 2700-Mon
CREATE TABLE INST, Here is a database schema( table schema);
what's the wii points with title and source being tsūshin taikyoku: igo dōjō 2700-mon.It is not neccessary to use all the tables.
SELECT percent_of_slovenes_1991 FROM table_name_76 WHERE village__slovenian_ = "rut"
CREATE TABLE INST, Here is a database schema( table schema);
What was Rut's Slovenes percentage in 1991?It is not neccessary to use all the tables.
SELECT "Attendance" FROM table_8315 WHERE "Date" = 'november 6, 1960'
CREATE TABLE INST, Here is a database schema( table schema);
What was the Attendance on November 6, 1960?It is not neccessary to use all the tables.
SELECT winner FROM table_name_10 WHERE general_classification = "miguel indurain" AND points_classification = "mario cipollini" AND mountains_classification = "claudio chiappucci" AND young_rider_classification = "pavel tonkov"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner when the General classification was held by Miguel Indurain the Points classification held by Mario Cipollini the Mountains classification held by Claudio Chiappucci and the Young RIder classification held by Pavel Tonkov?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Group Song = 就是你 AND Index = f2
CREATE TABLE INST, Here is a database schema( table schema);
What is Score, when Group Song is 就是你, and when Index is F2?.It is not neccessary to use all the tables.
SELECT MAX number FROM table WHERE name = Bok de Korver
CREATE TABLE INST, Here is a database schema( table schema);
What amount of times is the name, Bok De Korver listed?.It is not neccessary to use all the tables.
SELECT award FROM table_name_84 WHERE result = "#100"
CREATE TABLE INST, Here is a database schema( table schema);
What's the award for #100?It is not neccessary to use all the tables.
SELECT institution FROM table_1973842_1 WHERE location = "Chestnut Hill, Massachusetts"
CREATE TABLE INST, Here is a database schema( table schema);
What school is located in Chestnut Hill Massachusetts?It is not neccessary to use all the tables.
SELECT Game site FROM table WHERE Attendance = 27,189
CREATE TABLE INST, Here is a database schema( table schema);
Which Game site has 27,189 Attendances ?.It is not neccessary to use all the tables.
SELECT 2004 FROM table_name_51 WHERE product = "oil terminal"
CREATE TABLE INST, Here is a database schema( table schema);
What is the amount of oil terminal in 2004?It is not neccessary to use all the tables.
SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code ORDER BY COUNT(*) DESC
CREATE TABLE INST, Here is a database schema( table schema);
What are the different card types, and how many transactions have been made with each Visualize by bar chart, I want to order in desc by the Y-axis.It is not neccessary to use all the tables.
SELECT Try bonus FROM table WHERE Losing bonus = 1 AND Points for = 179
CREATE TABLE INST, Here is a database schema( table schema);
What is Try Bonus, when Losing Bonus is "1", and when Points For is "179"?.It is not neccessary to use all the tables.
SELECT team FROM table_name_8 WHERE location_attendance = "target center 11,921"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TEAM WITH ATTENDANCE AT TARGET CENTER 11,921?It is not neccessary to use all the tables.
SELECT years_in_orlando FROM table_name_96 WHERE school_club_team = "kentucky"
CREATE TABLE INST, Here is a database schema( table schema);
Which Years in Orlando has a School/Club Team of kentucky?It is not neccessary to use all the tables.
SELECT "name" FROM table_204_568 ORDER BY id DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the last name listed on this chart ?It is not neccessary to use all the tables.
SELECT country FROM table_name_17 WHERE year = 2011
CREATE TABLE INST, Here is a database schema( table schema);
Which county has 2011 as the year?It is not neccessary to use all the tables.
SELECT earnings_before_interest_and_taxes__€m_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.78"
CREATE TABLE INST, Here is a database schema( table schema);
Name the ebit for eps being 1.78It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = state sports centre
CREATE TABLE INST, Here is a database schema( table schema);
Which date had a venue of the State Sports Centre?.It is not neccessary to use all the tables.
SELECT reward FROM table_1272844_2 WHERE finish = "3rd voted Out Day 8"
CREATE TABLE INST, Here is a database schema( table schema);
Who received the reward on the episode where the finish was "3rd voted out day 8"?It is not neccessary to use all the tables.
SELECT laps FROM table_name_31 WHERE grid > 1 AND time_retired = "halfshaft"
CREATE TABLE INST, Here is a database schema( table schema);
How many laps for a grid larger than 1 with a Time/Retired of halfshaft?It is not neccessary to use all the tables.
SELECT MAX(place) FROM table_20424140_3
CREATE TABLE INST, Here is a database schema( table schema);
What's the highest number a couple has ranked at?It is not neccessary to use all the tables.
SELECT unit FROM table_name_94 WHERE location = "argentina"
CREATE TABLE INST, Here is a database schema( table schema);
What unit is in Argentina?It is not neccessary to use all the tables.
SELECT Annual interchanges (millions) 2011–12 FROM table WHERE Annual entry/exit (millions) 2011–12 = 36.609
CREATE TABLE INST, Here is a database schema( table schema);
How many annual interchanges in the millions occurred in 2011-12 when the number of annual entry/exits was 36.609 million? .It is not neccessary to use all the tables.
SELECT Launch site FROM table WHERE Mission = Test Mission: war heads and Missile payload AND Results = Partial Failure
CREATE TABLE INST, Here is a database schema( table schema);
Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure?.It is not neccessary to use all the tables.
SELECT COUNT("movements") FROM table_202_160
CREATE TABLE INST, Here is a database schema( table schema);
how many movements -lrb- up or down -rrb- did the team experience ?It is not neccessary to use all the tables.
SELECT week FROM table_name_57 WHERE tournament = "cincinnati"
CREATE TABLE INST, Here is a database schema( table schema);
What week was the tournament at Cincinnati?It is not neccessary to use all the tables.
SELECT game FROM table_name_80 WHERE streak = "loss 1" AND score = "110–111"
CREATE TABLE INST, Here is a database schema( table schema);
Which Game has a Streak of loss 1 and a Score of 110–111?It is not neccessary to use all the tables.
SELECT COUNT(published) FROM table_name_86 WHERE in_order_of_publication = "first"
CREATE TABLE INST, Here is a database schema( table schema);
How many total publications were the first of the series?It is not neccessary to use all the tables.
SELECT epicenter FROM table_name_10 WHERE intensity = "unknown" AND date = "march 2, 1825"
CREATE TABLE INST, Here is a database schema( table schema);
What is the epicenter of the earthquake on March 2 1825 with an unknown intensity?It is not neccessary to use all the tables.
SELECT cat_no FROM table_name_23 WHERE label_s_ = "mute" AND release_format = "standard cd"
CREATE TABLE INST, Here is a database schema( table schema);
What is the cat no for the label mute and the standard cd format?It is not neccessary to use all the tables.
SELECT chassis FROM table_name_88 WHERE year = 1971
CREATE TABLE INST, Here is a database schema( table schema);
Which Chassis was featured in the year 1971?It is not neccessary to use all the tables.
SELECT SUM(total) FROM table_name_71 WHERE years = "2000–2012" AND silver > 2 AND bronze = 0 AND rank < 70
CREATE TABLE INST, Here is a database schema( table schema);
What is the total in 2000–2012 with more than 2 silver 0 Bronze and a Rank smaller than 70?It is not neccessary to use all the tables.
SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "RASH"
CREATE TABLE INST, Here is a database schema( table schema);
what is minimum days of hospital stay of patients whose primary disease is rash?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team when the home was st kilda?.It is not neccessary to use all the tables.
SELECT MIN(wins) FROM table_name_16 WHERE scored < 23 AND team = "2 de mayo" AND draws < 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest wins that has fewer than 23 goals scored team of 2 de Mayo and fewer than 7 draws?It is not neccessary to use all the tables.
SELECT COUNT(goals_for) FROM table_name_62 WHERE draws > 7 AND wins > 8 AND losses > 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of goals for entries that have more than 7 draws 8 wins and more than 5 losses?It is not neccessary to use all the tables.
SELECT jockey FROM table_name_53 WHERE post = 12
CREATE TABLE INST, Here is a database schema( table schema);
What is Jockey when Post is 12?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Overall = 273
CREATE TABLE INST, Here is a database schema( table schema);
WHAT POSITION IS 273?.It is not neccessary to use all the tables.
SELECT longitude FROM table_name_35 WHERE name = "angerona tholus"
CREATE TABLE INST, Here is a database schema( table schema);
What is the longitude of Angerona Tholus?It is not neccessary to use all the tables.
SELECT COUNT Decile FROM table WHERE Area = whitby AND Name = samuel marsden collegiate school AND Roll > 163
CREATE TABLE INST, Here is a database schema( table schema);
What was the decile of Samuel Marsden Collegiate School in Whitby, when it had a roll higher than 163?.It is not neccessary to use all the tables.
SELECT method FROM table_name_30 WHERE result = "loss" AND date = "january 19, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
what is the method when the result is loss on january 19 2008?It is not neccessary to use all the tables.
SELECT ratt FROM table_name_83 WHERE long = "73"
CREATE TABLE INST, Here is a database schema( table schema);
What is the RAtt when the long is 73?It is not neccessary to use all the tables.
SELECT 1st Leg FROM table WHERE Home (2nd leg) = instituto
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1st leg for Instituto?.It is not neccessary to use all the tables.
SELECT AVG(margin) FROM table_name_30 WHERE player = "russ cochran"
CREATE TABLE INST, Here is a database schema( table schema);
What is russ cochran's average margin?It is not neccessary to use all the tables.
SELECT Wins FROM table WHERE Poles = 0 AND Final Placing = 15th
CREATE TABLE INST, Here is a database schema( table schema);
How many wins did Hobbs had a 15th finish at poles 0?.It is not neccessary to use all the tables.
SELECT team FROM table_name_27 WHERE pick = "2"
CREATE TABLE INST, Here is a database schema( table schema);
What team had Pick 2?It is not neccessary to use all the tables.
SELECT MIN Lost FROM table WHERE Played < 18
CREATE TABLE INST, Here is a database schema( table schema);
Which loss had a player lower than 18?.It is not neccessary to use all the tables.
SELECT Diameter (km) FROM table WHERE Diameter (mi) = 8mi AND Gill = e
CREATE TABLE INST, Here is a database schema( table schema);
What shows for the Diameter (km) when the Diameter (mi) is 8mi, and a Gill is e?.It is not neccessary to use all the tables.
SELECT COUNT(womens_doubles) FROM table_28138035_4 WHERE year_location = "2011 Rio de Janeiro"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of womens doubles for 2011 rio de janeiroIt 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.age < "41" AND lab.flag = "abnormal"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients aged below 41 had abnormal lab test results?It is not neccessary to use all the tables.
SELECT chassis FROM table_name_57 WHERE entrant = "clarke-mordaunt-guthrie-durlacher"
CREATE TABLE INST, Here is a database schema( table schema);
Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry?It is not neccessary to use all the tables.
SELECT meas_num FROM table_256286_61 WHERE description = "Obscenity and sexual conduct bill"
CREATE TABLE INST, Here is a database schema( table schema);
What is the measure number for the bill described as obscenity and sexual conduct bill?It is not neccessary to use all the tables.